Back In the print window choose "Save as PDF" as the destination
NOTE.CS

Neural Network Basics

1 topic ยท 28 Nov 2026
1

Neural Network Basics

Artificial Intelligence

What is a neural network?

A neural network is a machine learning model inspired by the structure of the human brain. It consists of interconnected neurons organized into layers that learn patterns from data.


What is a perceptron?

The simplest neural unit. It takes inputs, multiplies them by weights, adds a bias, and applies an activation function.


What is a weight and a bias?

Weights decide how important an input is. Bias shifts the output so the model can fit data better.


What is a hidden layer?

A layer between the input and output layers where the network learns features.


What is a fully connected (dense) layer?

A layer where every neuron is connected to all neurons of the previous layer.


What is an activation function?

An activation function introduces non-linearity into a neural network, allowing it to learn complex patterns. Examples include ReLU, sigmoid, and softmax.


Why ReLU instead of sigmoid in hidden layers?

ReLU is computationally simple and generally provides better gradient behavior for deep networks than sigmoid.


What is Softmax?

Softmax converts a set of model outputs into probabilities whose total sum is 1. It is commonly used for multi-class classification.


What is Sigmoid?

Sigmoid converts an input into a value between 0 and 1. It is commonly used for binary classification or independently predicting multiple labels.


Softmax vs Sigmoid?

Softmax is generally used when choosing one class from multiple mutually exclusive classes. Sigmoid is commonly used for binary classification or multi-label classification where multiple labels can be true at the same time.


What is forward propagation?

Passing input through the network layer by layer to get the output.


What is a gradient?

A gradient tells us how the loss changes with respect to the model's parameters. It is used by optimization algorithms to update the parameters.


What is backpropagation?

Backpropagation calculates how much each model parameter contributed to the prediction error and uses gradients to update the parameters.


What is the vanishing gradient problem?

Gradients become very small in deep networks, so early layers learn very slowly.


What is the exploding gradient problem?

Gradients become very large and make training unstable.


What is weight initialization?

Setting the starting values of weights. Good initialization helps training start well.


What is the difference between parameter and hyperparameter?

Parameters are learned automatically during training, such as neural network weights. Hyperparameters are settings chosen before or during training, such as learning rate, batch size, and number of epochs.


What is a parameter count and why does it matter?

It is the total number of learnable weights. Fewer parameters means a smaller, faster model that is easier to deploy.


What are FLOPs?

The number of floating-point operations needed for one forward pass. It measures computational cost.


What is inference time?

The time the model takes to make a prediction for one sample.