Neural networks basics (concept)
Computer Science · AI/ML fundamentals
Question 1 of 10
0A learning rate of 0 means that:
Stuck? Read the explanation
Unlocks at a streak of 5 correct answers in a row.
Embed this practice on your site or class page
Paste this HTML into your page. Students practise right there; it is free and needs no account.
Neural networks basics (concept) explained
A neural network is a model made of layers of simple units, called neurons, each of which combines its inputs with weights and passes the result through an activation function. Training adjusts the weights so that the network's outputs match the desired outputs.
An artificial neuron takes inputs , multiplies each by a weight and adds a bias . This gives the weighted sum . The neuron then applies an activation function and outputs . Without a non-linear activation, a stack of layers would collapse into a single linear function, so the activation is essential.
Common activation functions include the sigmoid, which squashes any value into the range 0 to 1, and ReLU, which outputs .
Neurons are arranged in layers: an input layer, one or more hidden layers and an output layer. In a fully connected layer, every neuron connects to every neuron in the next layer.
Training starts with random weights. The network makes predictions, a loss function measures how wrong they are, and backpropagation with gradient descent adjusts the weights to reduce the loss. Repeating this over many examples gradually improves the model.
Worked example
A single neuron has inputs and , weights and , and bias . It uses ReLU.
- Weighted sum: .
- ReLU output: .
With a sigmoid instead, the output is .
What you will practise
105 multiple-choice questions (Easy, Medium, Hard). Each answer is followed by an explanation.
Example questions
- A neural network is inspired by:
- Neurons are connected by:
- A hidden layer:
- Activation functions introduce:
- Backpropagation:
- A weight in a neural network is:
- The process of computing outputs from inputs through the layers is called the:
- The bias term in a neuron:
…and 97 more.