Chapter 10 Flashcards
(27 cards)
What inspired the development of artificial neural networks?
Biological principles of how neurons in animal brains function.
What is the basic architecture of an artificial neural network?
The multilayer perceptron (MLP).
Why did neural networks regain popularity in recent years?
Due to more data, greater computing power, better training algorithms, and increased funding.
What is a perceptron?
A simple ANN model that uses threshold logic units for linear classification.
What function does a threshold logic unit (TLU) perform?
Computes a weighted sum of inputs and applies a step function to determine the output.
What is the main limitation of a single-layer perceptron?
It cannot solve non-linearly separable problems like XOR.
How does a multilayer perceptron (MLP) address the perceptron’s limitation?
By stacking multiple layers to model non-linear relationships.
What is the purpose of an activation function in a neural network?
To introduce non-linearity so the network can learn complex functions.
What are common activation functions used in MLPs?
Sigmoid, hyperbolic tangent (tanh), and ReLU.
Why are weights in a neural network initialized randomly?
To break symmetry and allow neurons to learn different features.
What does backpropagation do in neural networks?
It computes gradients and updates weights using gradient descent to minimize error.
What are the two phases of backpropagation?
Forward pass (compute outputs) and backward pass (compute gradients).
What is the role of the learning rate in training neural networks?
It controls how much the weights are adjusted during training.
What are typical components of an MLP architecture?
Input layer, one or more hidden layers (with bias neurons), and an output layer.
What type of output and activation is used in regression MLPs?
A single output neuron with no activation or a softplus function.
How is classification handled in MLPs?
Using one output neuron per class with softmax activation for multi-class classification.
What is the Keras Sequential API?
A simple way to build feedforward neural networks layer by layer.
What is the Functional API in Keras used for?
Creating complex models with non-sequential architectures like multi-input or multi-output networks.
What does the softmax activation function do?
Converts logits into probabilities that sum to 1 across output classes.
How are bias terms initialized in Keras models?
Biases are typically initialized to zero.
What loss functions are used in Keras for classification?
sparse_categorical_crossentropy, categorical_crossentropy, and binary_crossentropy.
What optimizer is commonly used in Keras examples?
Stochastic Gradient Descent (sgd).
What is early stopping in model training?
A technique to stop training when validation performance stops improving.
What does the predict() method do in Keras?
Outputs the predicted probabilities for each class.