Specialty Digest

Global English editionLearners’ Study Dashboard — in development
The Knowledge Library for All

Flashcards: open the module flashcards (end-of-module review with workplace questions).

Online Courses / University Track / Neural Networks and Deep Learning

Module 1 · Lesson 1 · Core

What a neural network does

See a network as a function that turns input numbers into an output number, with settings learned from examples.

  • 55 minutes
  • Serves O1
  • No prior lesson needed

Phase 1: Prepare

Step 1 Warm-up recall

Think of a task at work where you estimate a number from several facts, such as how long a delivery will take. What facts do you use?

Private: nothing you type here is sent or stored.

Step 2 Learning goal

By the end of this lesson you can:

  • define input, output and parameter (Foundation);
  • explain why networks learn from examples (Core);
  • give workplace uses of a network (Core).

Phase 2: Teach

Step 3 A familiar example

A courier firm wants to estimate delivery minutes from distance, parcel count and rain. A fixed rule would need someone to guess every effect. A network instead starts with adjustable settings and learns them from past deliveries.

Step 4 Clear explanation

A neural network is a mathematical function built from many small units called neurons. It takes inputs, which are numbers describing a case, and produces an output, such as a predicted time or a probability. The settings that decide how inputs become outputs are the parameters, called weights and biases. Rather than being told the rules, the network is shown many examples and its parameters are adjusted until its outputs match the known answers. McCulloch and Pitts proposed a simple artificial neuron in 1943, and Rosenblatt built the perceptron in 1958; modern deep learning stacks many such units in layers (Goodfellow, Bengio and Courville, 2016).

Inputsnumbers inWeightsmultiplySum + biasadd upActivationshape output
A neuron multiplies each input by a weight, adds the results and a bias, then passes the total through an activation.

Two points follow. First, a network does nothing mysterious: every output is a chain of multiplications and additions. Second, its quality depends on the examples it learned from, so the training data matter as much as the design. For the wider field, see machine learning.

Step 5 Worked example (4 marks)

Name the input, output and parameters in this task: a firm predicts delivery minutes from distance in km and number of parcels.

  1. Inputs: distance and number of parcels. (1 mark)
  2. Output: predicted delivery minutes. (1 mark)
  3. Parameters: the weight for each input and a bias, adjusted from past deliveries. (1 mark)
  4. Answer: two inputs, one output, three parameters (two weights and one bias). (1 mark)

Go deeper: the professor's notes

A neural network is a function that turns input numbers into an output number. What it does is set by parameters, and those are learned from examples rather than typed in as rules.
Inputs

Numbers describing one case, such as distance and parcel count.

Output

The prediction, such as delivery minutes.

Parameters

Weights and biases that learning adjusts.

Examplespast casesAdjustparametersPredictnew caseCheckagainst truth
How a network is built from examples

Three roles in one delivery-time neuron

RoleIn the exampleHow many
InputsDistance and parcels2
OutputPredicted minutes1
ParametersTwo weights and one bias3

At work: Estimating call-handling time

Illustrative: a service desk wants to predict minutes per call from three recorded facts: call type score, minutes the caller waited and number of earlier calls from the same caller.

  1. Name the inputs: the three recorded facts.
  2. Name the output: predicted handling minutes.
  3. Count the parameters for one neuron: three weights and one bias, so 4.
  4. Ask where the past examples come from and whether they cover current call types.

What a careful practitioner decides. Treat the model as a set of learned numbers that is only as good as its examples, and check the examples first.

Phase 3: Practise

Step 6 Learner practice (instant-marked)

1. The settings a network adjusts during learning are called:

2. A network learns mainly from:

3. The output of a delivery-time network is best described as:

4. A network with two inputs, one weight each and one bias has how many parameters?

Phase 4: Close

Step 7 Recap

  • A network turns input numbers into an output number.
  • Weights and biases are the parameters that learning adjusts.
  • The examples used to learn decide how good the result is.

Step 8 Exit ticket (ungraded)

Name one estimate at your work that a network could learn from past records, and list its inputs.

Private: nothing you type here is sent or stored.

Step 9 Go further (Extension)

List three inputs and the output for a prediction you make at work.

In industry: McCulloch and Pitts, 1943

In 1943 Warren McCulloch and Walter Pitts published a paper in the Bulletin of Mathematical Biophysics that treated the nervous system as a net of simple on-off units, each of which fires when enough input arrives. Their model is regarded as the start of the artificial neuron, though it could not learn.

Link to this lesson. A network is built from many simple units that turn input numbers into an output. Learning from examples was added later.

Source: McCulloch, W. S. and Pitts, W. (1943), A logical calculus of the ideas immanent in nervous activity, Bulletin of Mathematical Biophysics, 5, 115–133

Common mistakes

MistakeWhy it fails
Treating a network as a thinking mindIt is a calculation with adjustable numbers.
Forgetting the biases when counting parametersCount every weight and every bias.
Assuming any examples will doPoor examples produce a poor model.

Limits. This lesson simplifies: real networks have very many parameters and several kinds of units.

Flashcards for this lesson (4)

Tap a card to reveal the answer. Read the question, answer it aloud or in writing first, then check yourself against the explanation.

Card 1 of 4 · A colleague says a neural network is “a black box that thinks”. How do you correct this precisely?
Inputsnumbers inWeightsmultiplyActivationshapeOutputprediction
A network is arithmetic, not thought.

A network is a function: every output is a chain of multiplications and additions, each followed by a simple activation. Its behaviour is fixed entirely by its parameters, the weights and biases. The difficulty is not the arithmetic but the scale: a large model has millions of parameters, so nobody can read a reason for one output straight from them.

At work: when asked why a model produced a figure, state the inputs it received and show how it behaves on test cases, instead of claiming to understand every weight.

Card 2 of 4 · A delivery-time neuron has two inputs, distance and parcel count. How many parameters must be learned?
Weightsone per inputBiasone per neuronTotal2 + 1 = 3
Count every weight and every bias.

Three: one weight for each input (2) plus one bias (1). Beginners often forget the bias. Every weight and every bias is a number that learning adjusts, so every one is counted.

At work: when a vendor quotes the size of a model, ask whether the figure counts biases as well as weights, and how many layers it covers.

Card 3 of 4 · Distance is 2 km and there are 3 parcels. The weights are 0.5 and 0.4 and the bias is 1. What total z does the neuron form?
2 × 0.51.03 × 0.41.2Bias1.0z3.2
Multiply, add, then add the bias.

Apply z = w1×x1 + w2×x2 + b. Distance: 2 × 0.5 = 1.0. Parcels: 3 × 0.4 = 1.2. Add the bias 1.0. Total z = 3.2. The total is the raw signal; an activation function then shapes it into the neuron’s output.

At work: a reviewer can repeat a calculation like this by hand on one case to confirm that a tool is doing what its documentation says.

Card 4 of 4 · What do the sign and size of a weight tell you about an input?
Positiveraises zNegativelowers zNear zeroignored
Sign gives direction; size gives influence.

A positive weight pushes the total up as the input grows; a negative weight pushes it down; a weight near zero means the input is almost ignored. Example: inputs 4, 1 and 2 with weights 0.25, −1 and 0.5 and bias 0.5 give 1 − 1 + 1 + 0.5 = 1.5. Sizes can be compared directly only when the inputs are on similar scales.

At work: a large weight on an input is a prompt to ask whether that input is reliable, since the model leans on it heavily.

Review with flashcards

Test yourself on this module with workplace flashcards and detailed answers.

Open the module flashcards