Classification with a Neural Network
Neural networks are advanced computational models that mimic the human brain's structure, enabling them to capture and model complex, non-linear relationships between inputs and outputs. They consist of layers of perceptrons (neurons) that process inputs through weighted connections.
Structure of Neural Networks

What is a Neural Network? | IBM
- Input Layer: The first layer that receives the input.
- Hidden Layers: One or more layers that process the inputs from the previous layer and pass the output to the next layer. Each neuron in a hidden layer transforms the inputs with a weighted sum followed by a non-linear activation function.
- Output Layer: The final layer that produces the network's output.
Mathematical Model
Notations
- : Weight from neuron in the previous layer to neuron in the current layer.
- : Bias term for neuron .
- : Weighted sum of inputs for neuron .
- : Activation function applied to , often a sigmoid function.
- : Output of neuron after applying the activation function.
- : Loss function measuring the prediction error, where is the actual target and