CS: Neural Networks: From Perceptron to Deep Learning
How artificial neurons learn patterns from data
How artificial neurons learn patterns from data
CS - Grade 9-12
- 1
A perceptron has two inputs, x1 = 1 and x2 = 0. The weights are w1 = 0.7 and w2 = -0.4, and the bias is b = -0.2. Compute the weighted sum z = w1x1 + w2x2 + b. If the perceptron outputs 1 when z is greater than or equal to 0 and outputs 0 otherwise, what is the output?
- 2
Explain what a weight represents in a neural network. Use a simple example, such as predicting whether a student will pass a test based on study time and sleep.
- 3
A single neuron receives three inputs: x1 = 2, x2 = -1, and x3 = 3. The weights are w1 = 0.5, w2 = 1.0, and w3 = -0.25. The bias is b = 0.1. Calculate the neuron's pre-activation value z.
- 4
The step activation function outputs only 0 or 1. The sigmoid activation function outputs values between 0 and 1. Explain why sigmoid can be useful for a model that predicts probabilities.
- 5
A neural network has an input layer with 4 neurons, one hidden layer with 6 neurons, and an output layer with 2 neurons. How many layers contain trainable neurons, not counting the input layer as trainable computation?
- 6
In your own words, explain the difference between a shallow neural network and a deep neural network.
- 7
A model predicts 0.9 for an image whose correct label is 1. Another model predicts 0.2 for the same image. Which prediction has a smaller error if you measure error by the absolute difference between prediction and correct label? Show the calculation.
- 8
Gradient descent is often described as walking downhill on a loss surface. Explain what the loss surface, the slope, and the learning rate represent in this analogy.
- 9
A neural network is training, but its loss decreases very slowly. One student suggests greatly increasing the learning rate. Explain one possible benefit and one possible risk of this change.
- 10
Match each task to a likely neural network output type: A. classifying an email as spam or not spam, B. predicting tomorrow's temperature, C. identifying which digit from 0 to 9 appears in an image. Explain your choices.
- 11
Look at this simplified network: two input neurons feed into three hidden neurons, and the three hidden neurons feed into one output neuron. If every neuron in one layer connects to every neuron in the next layer, how many connections are there in total?
- 12
A neural network correctly classifies almost all training images but performs poorly on new test images. What problem is this likely showing, and name two ways to reduce it.
More CS Worksheets
CS: Algorithms and Flowcharts
Grade 6-8 · 12 problems
CS: Arrays and Lists
Grade 9-12 · 12 problems
CS: Big-O Notation and Algorithm Efficiency
Grade 9-12 · 12 problems
CS: Binary Numbers and Number Systems
Grade 6-8 · 12 problems
More Grade 9-12 Worksheets
Linear Equations
Math · 8 problems
Cell Biology
Biology · 8 problems
Reading Comprehension
Language Arts · 8 problems
Historical Thinking & Evidence
Social Studies · 8 problems