Artificial Neural Networks
- 59Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
- spaceFlip card
- KI knew it
- DI didn't know it
- ←Previous card
- →Next card
What biological idea provides the basis for artificial neural networks?
Biological nervous systems receive input signals, process them in neurons, activate selected neurons, and produce decisions or responses.
Or swipe the card
59 cards
What biological idea provides the basis for artificial neural networks?
Biological nervous systems receive input signals, process them in neurons, activate selected neurons, and produce decisions or responses.
How do different activated neurons affect behavior in the nervous system?
Different patterns of activated neurons lead to different decisions or feelings.
What types of real-world systems commonly use neural networks?
Examples include ChatGPT, Gemini, Tesla's self-driving cars, enterprise systems, and bank fraud-detection systems.
What is the basic computational analogy between a nervous system and an artificial neural network?
Inputs are received, processed by interconnected units, and transformed into an output decision.
What is a feature in the fitness-classification example?
A feature is an input variable used to predict fitness, such as weekly exercise hours, weekly junk-food consumption, daily sleep duration, or daily water intake.
Why is the fitness prediction task a binary classification problem?
It has only two possible outcomes: fit or unfit.
What is labeled data?
Labeled data contains input features together with the known correct outcome or label.
What is the goal of training the neural network in the fitness example?
To learn from labeled examples so it can classify a new person's fitness status when the label is not provided.
What is the role of the input layer?
The input layer receives the data features and passes them to the next layer.
What is the role of a hidden layer?
A hidden layer performs calculations and processes information received from the preceding layer.
What is the role of the output layer?
The output layer produces the neural network's final decision or prediction.
How are layers connected in the described fully connected architecture?
Each neuron in one layer sends its output to all neurons in the next layer.
How many hidden layers and hidden neurons are used in the simplified example?
The example uses one hidden layer containing two neurons.
How flexible are the numbers of hidden layers and neurons in a neural network?
A neural network can contain as many hidden layers as needed and as many neurons in a hidden layer as needed.
What does forward propagation mean?
Forward propagation is the process in which data moves from the input layer through hidden layers to the output layer.
How are the four fitness features assigned to the input layer?
Each feature is assigned to an input neuron, such as x1, x2, x3, and x4.
What does a weight represent in a neural network?
A weight represents the importance or influence assigned to an input connection.
Why are weights initially assigned randomly?
At the beginning, the network does not know which features are important, so it starts with random weights.
What is the first calculation performed by a neuron?
The neuron computes a weighted sum of its inputs and then adds a bias: z=sumixiwi+b.
What is the purpose of the bias term?
The bias is an additional value added to the weighted sum before activation.
What value does the first hidden neuron produce in the example before activation?
Using the example's inputs, weights, and bias, the first hidden neuron produces z=11.15.
What value does the second hidden neuron produce in the example?
The second hidden neuron produces a value of 7.95 after using its own weights and calculation.
What does an activation function do?
An activation function transforms a neuron's calculated value and determines how strongly or whether the neuron is activated.
What is the ReLU activation function?
ReLU returns the larger of the input value and zero: operatornameReLU(z)=max(0,z).
How does ReLU treat negative and positive values?
A negative value produces an inactive neuron with output 0, while a positive value remains positive and activates the neuron.
What does an activated hidden neuron indicate in the fitness example?
It indicates that the neuron's processed evidence is contributing toward a positive fitness-related response.
What is the output of the output-layer weighted calculation in the example before activation?
The output-layer calculation produces z=14.146.
Why is sigmoid preferred over ReLU in the output layer for the described binary classification?
Sigmoid maps the output to a value between 0 and 1, which is useful for representing a binary prediction or probability.
What is the sigmoid activation function?
The sigmoid function is sigma(z)=frac11+e−z.
What output does the sigmoid function produce in the example?
Applying sigmoid to the output-layer value produces approximately 0.99.
How is a sigmoid output interpreted using the threshold described in the content?
A value from 0 to 0.5 is treated as inactive or unfit, while a value from 0.5 to 1 is treated as activated or fit.
What does a sigmoid output close to 1 indicate?
It indicates high confidence in the positive class.
What is binary cross-entropy used for?
Binary cross-entropy is a loss function used to measure prediction error in binary classification.
What does a loss value close to zero mean?
It means the prediction is correct or very close to the correct output.
What does a large loss value mean?
It means the predicted output is far from the correct output.
What loss is obtained in the example when the actual label is 0 and the prediction is approximately 0.99?
The binary cross-entropy loss is approximately 4.6, which is very high.
What loss is obtained when the predicted output is 0.5 in the example?
The loss is approximately 0.69.
What loss is obtained when the actual label is 0 and the predicted output is 0.1?
The loss is approximately 0.1, which is close to zero.
What is backpropagation?
Backpropagation sends the prediction error backward through the network to determine how much each weight contributed to the loss.
Why are weights updated during training?
Weights are updated to reduce the loss and make future predictions closer to the correct outputs.
What optimization method is used to update weights in the described process?
Gradient descent is used to calculate and update the weights.
What is the general gradient-descent weight-update idea?
A new weight is obtained by starting with the old weight and subtracting a learning-rate-scaled gradient: wnew=w−etafracpartialLpartialw.
What is the learning rate?
The learning rate controls how large each weight update is during gradient descent.
What can happen if the learning rate is too small?
The loss decreases slowly, taking small steps toward zero.
What can happen if the learning rate is too large?
The loss may overshoot its minimum and oscillate instead of steadily decreasing.
What does the derivative represent in gradient descent?
The derivative measures how much a particular weight contributes to the loss.
What happens to the junk-food weight in the example after one update?
A weight initially set to approximately 0.5 is updated to approximately −0.094.
What does a negative weight for junk-food consumption mean in the fitness example?
More junk-food consumption contributes negatively to the prediction of being fit.
What is the complete high-level training cycle of a neural network?
The network performs forward propagation, calculates the loss, backpropagates the error, and updates the weights.
How does repeated training produce a generalized model?
Passing hundreds, thousands, or millions of examples repeatedly updates the weights until the network can make accurate predictions on new unlabeled data.
What is the role of activation functions and loss functions in a neural-network program?
The programmer selects appropriate activation and loss functions, while the neural-network library performs the underlying calculations.
Which activation functions are selected in the example's two-layer network?
ReLU is used in the hidden layer, and sigmoid is used in the output layer.
Which tools can be used to implement the mathematical operations of a neural network?
Libraries such as TensorFlow with Keras or PyTorch can perform the calculations automatically.
Which loss function and optimizer are appropriate for the described binary-classification task?
Binary cross-entropy is used as the loss function, and gradient descent is used as the optimizer.
Why is it still important to understand the mathematics if libraries perform the calculations?
Understanding the underlying calculations helps a practitioner choose functions correctly and train the neural network effectively.
What type of input can neural networks process directly according to the content?
Neural networks process numerical inputs.
Why must an image be converted into numerical data for neural-network processing?
Because neural networks do not directly understand images as visual objects; they operate on numerical representations.
Why is handwritten-digit recognition a multi-class classification problem?
It involves more than two possible classes: the digits from 0 through 9.
How does multi-class classification differ from the fitness example?
The fitness example has two classes, while handwritten-digit recognition has ten possible classes, from 0 to 9.

Ask anything
We've read this whole study set, so questions about it get the best answers.