Imagine a neural network as a group of friends passing notes to solve a problem together. Which part of the neural network acts like the friends passing notes?
Think about who is actively working together inside the network.
The layers of neurons are like friends passing notes, each layer processes information and passes it on to the next.
What is the output of this simple neural network forward pass code?
import numpy as np def simple_forward(x, w, b): return np.dot(x, w) + b x = np.array([1, 2]) w = np.array([0.5, -1]) b = 0.1 output = simple_forward(x, w, b) print(output)
Calculate dot product: (1*0.5) + (2*-1) + 0.1
The dot product is 0.5 + (-2) = -1.5, then add bias 0.1, total -1.4. Check carefully.
You want to build a model to recognize objects in photos. Which neural network type is best suited for this task?
Think about which network type is designed to handle images and spatial data.
CNNs are designed to process images by detecting patterns like edges and shapes using convolution layers.
What happens if the learning rate is set too high when training a neural network?
Think about how big steps in learning affect stability.
A too high learning rate causes the model to take big steps, missing the best solution and causing unstable training.
A neural network classifier outputs the following confusion matrix:
True Positive (TP): 40
False Positive (FP): 10
True Negative (TN): 30
False Negative (FN): 20
What is the precision of this model?
Precision = TP / (TP + FP)
Precision measures how many predicted positives are actually correct: 40 / (40 + 10) = 0.8