Skip to content

3 min read

Neural Network Basics

A neural network is a machine learning model made of connected nodes that multiply inputs by weights, add a bias, and pass the result through a simple function.

Create an account to save your progressSave your circuit

At a glance

What it is

A neural network is built from simple units called neurons, or nodes. Each neuron receives input numbers, multiplies each one by a weight, adds the products and a bias value, and then applies an activation function to produce an output. Neurons are arranged in layers: an input layer, one or more hidden layers, and an output layer.

The weights and biases are the adjustable settings of the model. Training changes them to reduce the difference between predicted and correct outputs. The method that works out how each weight should change is called backpropagation, and it is usually combined with gradient descent, which takes small steps toward lower error.

A neural network is not a copy of the human brain. The name is a loose inspiration. The underlying mathematics is ordinary multiplication, addition and function evaluation.

Inside your account

What an account adds to the pages you are reading.

Practice questions

Multiple-choice questions with answers you can check.

Games

4 short practice games in maths and science.

Glossary and simulators

424 glossary terms in plain English, and browser simulators.

Key ideas

Example

Question: a neuron has inputs x1 = 2 and x2 = 3, weights w1 = 0.5 and w2 = -1, and bias b = 1. What is the weighted sum before the activation? Compute 2 times 0.5 = 1, then 3 times -1 = -3, then add the bias: 1 + (-3) + 1 = -1.

Question: if the activation is ReLU, what is the output for the sum -1? ReLU gives 0 for negative input, so the neuron output is 0 for this input.

Common mistakes

Summary

A neural network is a layered model of neurons. Each neuron combines inputs with weights and a bias, then applies an activation function. Training adjusts the weights to reduce error on examples, and hidden layers let the model learn more complex patterns.

Frequently asked questions

What is a weight in a neural network?

A weight is a number that sets how strongly one input affects a neuron. Training changes the weights so that the network's outputs move closer to the correct answers.

Why do neural networks need activation functions?

Without a non-linear activation function, stacked layers of multiplication and addition would collapse into a single linear calculation. Non-linear activation functions let the network represent more complex patterns.

Do neural networks always need huge amounts of data?

Not always, but larger networks usually need more data to avoid overfitting. Small datasets often work better with simpler models.

Related pages

DersTeders AI

A study companion beside your lesson

Ask about the part you are stuck on, follow a solution step by step, and revisit the same topic with fresh examples.

Available from your panel. Sign in to open the AI section there.

The library behind these pages holds 5,082 topics and 201,970 practice questions.

Create your account

Keep your progress in one place

  • Pick up every lesson where you stopped
  • Answer practice questions and see your results
  • Use the simulators and games with one account

Test yourself

5 questions · answers appear as you go

0 / 5
According to the third paragraph, deep earthquakes are useful to geologists mainly because they ______.

Answer: trace the paths of slabs that have entered the mantle. The passage states that the deepest earthquakes cluster along thin, sheet-like structures that read as ancient ocean crust, so the correct completion is that they trace slab paths. The other options fail because the text says nothing about predicting earthquakes or measuring the core.

According to the fourth paragraph, a cold slab should ______ because it is chemically different from the hot mantle around it.

Answer: give up its distinct composition slowly as it sinks. The blank stands where the passage explains what follows from a chemical difference, and the sentence after it says that chemical signals reveal how far a slab travels. Therefore the correct completion is that it gives up its composition slowly, since the passage insists the change is gradual rather than sudden.

Which of the following best expresses the essential information in the passage?

Answer: Deep earthquakes map the paths of cold slabs, which changed how geologists read the mantle.. The passage moves from subduction, to the old disagreement, to seismic evidence, and finally to the use of deep quakes as a record of swallowed slabs. Because the last paragraph draws a practical conclusion from that evidence, the essential information is that deep earthquakes map the paths of slabs.

What did researchers report in the early 1990s that helped settle the argument about slabs?

Answer: That strong, continuous layers existed deep inside the mantle.. Paragraph three says that in the early 1990s researchers reported strong, continuous layers deep inside the mantle and read them as ancient ocean crust. Because those layers were taken as subducted material, they settled the dispute between the fragmentation model and the intact-slab model.

The word swallowed in the fourth paragraph is closest in meaning to ______.

Answer: taken in. In that phrase a cluster of deep quakes may mark material swallowed long ago, which means rock carried down and taken in by the mantle. Because the passage uses the word for rock drawn beneath the surface, taken in is correct, and not set free or spat out.