Made with ScholarlyMake flashcards like these from your own notes
Question:What is activation function in neural networks?
Answer:Nonlinear function applying to neurons output
Question:Why are activation functions needed in neural networks?
Answer:Introduce nonlinearity to model complex patterns
Question:What is the Sigmoid activation function definition?
Answer:σ(x) = 1/(1+e^{-x})
Question:State a key limitation of the sigmoid function.
Answer:Vanishes gradients for extreme inputs
Question:What is the ReLU function definition?
Answer:f(x) = max(0, x)
Question:What is a major advantage of ReLU?
Answer:Computational simplicity and sparse activation
Question:What is a downside of ReLU?
Answer:Dying ReLU problem (dead neurons)
Question:What is the tanh function definition?
Answer:tanh(x) = (e^x - e^{-x})/(e^x + e^{-x})
Question:How does tanh compare to sigmoid in output range?
Answer:Output in [-1, 1] vs [0, 1] for sigmoid
Question:What is the SoftMax function used for in neural nets?
Answer:Convert vector to probability distribution over classes
Question:What is the Swish activation function?
Answer:f(x) = x * sigmoid(x)
Question:Why is Swish considered smooth and non-monotonic?
Answer:Smooth derivative; can improve training performance
Question:What is the purpose of activation functions in perceptrons?
Answer:Introduce nonlinearity for complex decision boundaries
Question:Define a perceptron.
Answer:A simple linear classifier with a step activation
Question:What is the perceptron learning rule?
Answer:Adjust weights based on misclassified examples
Question:What does the convergence theorem for perceptrons guarantee?
Answer:If data linearly separable, algorithm converges
Question:What is the role of non-linear activation in multi-layer nets?
Answer:Enable learning of complex mappings across layers
Question:What is a multi-layer perceptron (MLP)?
Answer:Feedforward network with multiple hidden layers
Question:What is backpropagation in neural networks?
Answer:Efficiently computing gradients via chain rule for all weights
Question:What is a common issue in backpropagation called?
Answer:Vanishing/exploding gradients
Question:What is a residual network (ResNet)?
Answer:NN with skip connections to mitigate gradient issues
Question:What does backpropagation through time (BPTT) involve?
Answer:Unfolding recurrent nets in time and applying backpropagation
Question:What is a common activation used in CNNs?
Answer:ReLU and variants
Question:What is the purpose of pooling layers in CNNs?
Answer:Downsample feature maps and reduce computation
Question:What is the difference between a convolution and a fully connected layer?
Answer:Convolution uses local receptive fields and weight sharing
Question:What is a key property of the sigmoid function in classification?
Answer:Probabilistic interpretation as class probability
Question:What problem does vanishing gradient cause in deep networks?
Answer:Poor weight updates in early layers during training
Question:What is the advantage of Leaky ReLU over ReLU?
Answer:Small gradient for negative inputs prevents dead neurons
Question:What is a backpropagated error signal?
Answer:δ error term propagated to adjust weights
Question:What does the term 'gradient explosion' refer to?
Answer:Rapid growth of gradients causing unstable training
Question:Name a common technique to stabilize training in deep nets.
Answer:Gradient clipping or normalization
Question:What does the softmax function output sum to?
Answer:1 (sum of probabilities)
Question:What is a perceptron’s mathematical foundation about?
Answer:Linear decision boundary using weighted sum and bias
Question:How are weights updated in the basic perceptron learning rule?
Answer:w ← w + η y_i x_i if misclassified
Question:What constitutes the learning rule for perceptrons?
Answer:Corrective updates based on misclassifications
Question:What is the significance of the 2-layer perceptron vs. multi-layer?
Answer:Single-layer is linearly separable; multi-layer handles nonlinearity
Question:What does the term 'convergence' imply for perceptron training?
Answer:No further errors in training data with updates
Question:Name an activation function that can introduce nonlinearity without saturating?
Answer:ReLU family (ReLU, Leaky ReLU)
Question:What is backpropagation primarily used to compute in neural nets?
Answer:Gradients of loss w.r.t. all weights
Question:What is a challenge unique to backpropagation in deep nets?
Answer:Vanishing/exploding gradients across layers
Question:What is the key idea behind a convolutional layer?
Answer:Shared weights with local connectivity for feature detection
Question:What does a pooling layer do in CNNs?
Answer:Reduces spatial dimensions and controls overfitting
Question:What is the role of Gradients in neural network training?
Answer:Indicate how to adjust weights to minimize loss
Question:What is a major advantage of deep networks?
Answer:Representing hierarchical feature abstractions
Question:In CNNs, what is the effect of stride > 1?
Answer:Downsampling and larger receptive field
Question:What is the BCNN?
Answer:A placeholder term not used in standard practice
Question:What is the purpose of residual connections?
Answer:To ease optimization by routing around layers
Question:What does a backpropagation algorithm compute for each weight?
Answer:Gradient of loss with respect to that weight
Question:What is a key difference between sigmoid and softmax?
Answer:Sigmoid for binary outputs; softmax for multi-class probabilities
Question:What type of learning is supervised learning?
Answer:Learning from labeled examples to map inputs to outputs
Question:What is reinforcement learning focused on?
Answer:Learning by trial-and-error via rewards
Question:What is Q-learning primarily about?
Answer:Value-based RL learning optimal action values
Question:What is a variational autoencoder (VAE) primarily used for in generative modeling?
Answer:Learning a probabilistic latent space to generate new data.
Question:How does a VAE differ from a standard autoencoder in terms of latent space?
Answer:VAE imposes a probabilistic latent distribution rather than a fixed encoding.
Question:What is the role of the encoder in a VAE?
Answer:Maps input to parameters of a latent distribution (mean and variance).
Question:What is the role of the decoder in a VAE?
Answer:Generates data by sampling from the latent distribution and decoding.
Question:What are the two main components of the VAE loss function?
Answer:Reconstruction loss and KL divergence.
Question:What does the reconstruction loss measure in a VAE?
Answer:How well the decoded output matches the input.
Question:What does the KL divergence term encourage in a VAE?
Answer:Latent distribution to be close to the prior (e.g., Gaussian).
Question:Why is the prior distribution important in VAEs?
Answer:It regularizes the latent space to enable meaningful sampling.
Question:What is the reparameterization trick used for in VAEs?
Answer:Allows backpropagation through a stochastic sampling step.
Question:In VAEs, what distributions are typically used for the encoder output?
Answer:Parameters of a Gaussian: mean and diagonal covariance (log-variance).
Question:What distribution is commonly assumed as the prior in VAEs?
Answer:Standard Gaussian, N(0, I).
Question:What is a possible drawback of VAEs related to reconstruction quality?
Answer:Blurry reconstructions due to the stochastic latent space.
Question:What is a Conditional VAE (CVAE)?
Answer:A VAE conditioned on auxiliary information to guide generation.
Question:What is a Hierarchical VAE (HVAE)?
Answer:VAEs with multiple stochastic layers to capture complex structure.
Question:Which architecture component is crucial for controlling generated outputs in VAEs?
Answer:Choice of posterior and prior distributions.
Question:What is the main difference between Autoencoders and VAEs in terms of generation?
Answer:VAEs can generate new samples by sampling from latent space.
Question:What does ‘disentanglement’ refer to in VAEs and why is it desirable?
Answer:Latent factors correspond to interpretable data attributes.
Question:Name a common application area for VAEs.
Answer:Image or sound generation and representation learning.
Question:What is the objective of the VAE’s evidence lower bound (ELBO)?
Answer:Maximize data likelihood while regularizing latent space.
Question:What method optimizes the ELBO in practice?
Answer:Stochastic gradient descent with backpropagation.
Question:In a VAE, what does the decoder output parameterize for binary data?
Answer:Bernoulli distribution parameters (p@x).
Question:In a VAE, what does the encoder output for continuous data?
Answer:Mean and variance of a Gaussian in latent space.
Question:What is the purpose of the KL term in the ELBO?
Answer:Keep posterior close to prior to enable sampling.
Question:What is a practical challenge when training VAEs with high-capacity decoders?
Answer:Posterior collapse where decoder ignores latent variables.
Question:How can posterior collapse be mitigated in VAEs?
Answer:Use weaker decoders, batching strategies, or free-form priors.
Question:Define a ‘latent variable’ in the context of VAEs.
Answer:A compact representation variable sampled from the encoder distribution.
Question:What is meant by ‘reconstruction loss’ in VAEs for continuous data?
Answer:Mean squared error between input and reconstruction.
Question:What is meant by ‘reconstruction loss’ in VAEs for binary data?
Answer:Binary cross-entropy between input and reconstruction.
Question:Why are VAEs considered probabilistic generative models?
Answer:They learn distributions over latent space and data conditional on it.
Question:How does a VAE guarantee smooth interpolation in the latent space?
Answer:Gaussian prior and regularization encourage continuous space.
Question:What is the typical dimensionality relationship between input and latent space in VAEs?
Answer:Latent dimension is smaller than input dimension.
Question:What criterion guides architecture choice in VAEs?
Answer:Balance between reconstruction quality and latent space regularization.
Question:What does a CVAE enable beyond a standard VAE?
Answer:Controlled generation conditioned on labels or attributes.
Question:What is a key advantage of VAEs over GANs in terms of training stability?
Answer:More stable training due to probabilistic objective (ELBO).
Question:Name a common metric to evaluate VAEs qualitatively.
Answer:Visual inspection of generated samples and reconstructions.
Question:Name a common metric to evaluate VAEs quantitatively.
Answer:log-likelihood or ELBO lower bound estimates.
Question:What is the role of architecture in VAEs per section 7.8.3?
Answer:Affects expressiveness and quality of latent representations.
Question:Which distributions are discussed in 7.8.4 for VAEs?
Answer:Choice of latent priors and posteriors.
Question:What is a key topic in 7.9 Advanced Topics on VAEs?
Answer:CVAEs, HVAEs, and real-world challenges.
Question:What is a primary challenge in real-world VAEs applications?
Answer:Difficulties in modeling complex data distributions.
Question:Describe a Conditional VAE (CVAE) briefly.
Answer:VAE conditioned on additional information for targeted generation.
Question:What is a hallmark of a well-regularized VAE latent space?
Answer:Continuity and smoothness enabling meaningful sampling.
Question:What role does the KL divergence play in preventing overfitting in VAEs?
Answer:Regularizes latent space, preventing overfitting to data.
Question:What is a typical end-to-end training objective for VAEs?
Answer:Maximize ELBO via gradient-based optimization.
Question:What is the function of the encoder’s outputs in a VAE?
Answer:Parameters of q(z|x) distribution (mean, variance).
Question:What does the term ‘posterior’ refer to in VAEs?
Answer:q(z|x), the distribution of latent given data.
Question:What does the term ‘prior’ refer to in VAEs?
Answer:p(z), the assumed distribution of latent variables.
Question:What is the typical activation for the encoder’s output variance?
Answer:Softplus or exponential to ensure positivity.
Question:What is the role of the reparameterization trick in gradients?
Answer:Move randomness outside the gradient path.
Question:Which chapter discusses GANs following VAEs?
Answer:Chapter 8: Generative Adversarial Networks.
Question:What is GANs’ fundamental training dynamic?
Answer:Adversarial between generator and discriminator.
Question:Name a GAN variant that addresses mode collapse.
Answer:Wasserstein GAN (WGAN).
Question:What is a ConvNet-based GAN variant mentioned?
Answer:DCGANs.
Question:What is a common practice for evaluating GANs?
Answer:Qualitative visual inspection and quantitative metrics.
Question:What is the purpose of the 8.5 section in GANs?
Answer:Hands-on training a simple GAN in Python.
Question:What is the benefit of CVAEs over standard VAEs?
Answer:Controlled generation with class conditioning.
Question:What does the ELBO bound combine?
Answer:Reconstruction likelihood and KL regularization.
Question:What does ‘mode collapse’ mean in GANs?
Answer:Generator produces limited variety of outputs.
Question:What is the major challenge of training VAEs with powerful decoders?
Answer:Posterior collapse risk.
Question:What is a primary reason to study VAEs and GANs together?
Answer:To understand different generative modeling approaches.
Question:Which tools are commonly used with Python for deep learning as per intro?
Answer:TensorFlow, Keras, PyTorch.
Question:What language is recommended for ease of learning deep learning in the book?
Answer:Python.
Question:What is a key concept in 7.7.3 about VAEs?
Answer:Mathematics underlying variational inference.
Question:What does 7.7.2 compare?
Answer:Differences between Autoencoders and VAEs.
Question:What is the central mathematical concept behind VAEs?
Answer:Variational inference and probabilistic latent spaces.
Question:What is a major advantage of VAEs in generation?
Answer:Ability to sample new data from latent space.
Question:What does ‘recognition model’ refer to in VAEs?
Answer:Encoder approximating posterior q(z|x).
Question:What is the main purpose of neural networks in the context of data?
Answer:Identify patterns and make decisions from data
Question:How does deep learning extend basic neural networks?
Answer:Adds multiple layers to learn complex patterns
Question:What is a practical example of neural networks used in daily life?
Answer:Face tagging in photo apps or voice understanding by virtual assistants
Question:Why is Python favored for machine learning and deep learning?
Answer:Simplicity and readable syntax with rich ML libraries
Question:Name three popular ML frameworks mentioned in the text.
Answer:TensorFlow, Keras, PyTorch
Question:What is the relationship between data and neural networks?
Answer:Networks learn from data examples to recognize patterns
Question:What fundamental concept do neurons in a neural network resemble?
Answer:Brain neurons processing inputs and producing outputs
Question:What are the four steps a neuron uses to produce an output?
Answer:Input values, apply weights, add bias, apply activation function
Question:What is the role of weights in a neuron?
Answer:Weigh inputs to reflect their importance
Question:What does the bias term do in a neuron’s computation?
Answer:Shifts the activation threshold of the neuron
Question:What is an activation function’s purpose?
Answer:Decide whether to pass the signal forward
Question:How do neural networks learn from examples?
Answer:By adjusting weights and biases during training
Question:What is the key difference between shallow networks and deep networks?
Answer:Deep networks have multiple hidden layers for learning complex patterns
Question:What driving example illustrates the use of deep learning in autonomous vehicles?
Answer:Self-driving cars recognizing road signs and pedestrians
Question:What is the primary focus of the introductory analogy in 1.1?
Answer:Teaching a friend to recognize different fruits through examples
Question:Which task demonstrates neural networks processing complex data in layers?
Answer:Recognizing patterns in images or understanding speech text
Question:In the context of the book, what is the benefit of Python’s ecosystem for ML?
Answer:Provides powerful, easy-to-use interfaces for building/training models
Question:What is the general learning outcome of Part 1, Chapter 1?
Answer:Foundations of neural networks and deep learning and Python role
Question:What does “neural networks learn from data” imply about training?
Answer:Requires data-driven examples to adjust model parameters
Question:Why are layers important in deep learning?
Answer:They enable learning increasingly abstract representations
Question:What can be inferred about model predictions from deep networks?
Answer:More accurate predictions due to complex pattern learning
Question:What analogy is used to describe fruit recognition in 1.1?
Answer:Teaching a friend to recognize different types of fruit using examples
Question:What characteristic of Python makes it accessible to beginners?
Answer:Clear, readable syntax
Question:What is a key capability of self-driving car AI mentioned?
Answer:Recognize signs, pedestrians, and other vehicles
Question:What does the term “activation function” do in a neuron’s computation?
Answer:Transforms total input into an output decision
Question:What is the main historical significance of neural networks and deep learning in AI?
Answer:Powerful tools behind many modern innovations and applications
Question:What is the difference between 1.2 Neural Networks and Deep Learning sections?
Answer:Neural networks vs. deeper, multi-layer learning in deep learning
Question:Which elements feed data into neural networks in the car example?
Answer:Cameras and sensors
Question:What highlights the iterative nature of learning in neural networks?
Answer:Training with many examples to improve accuracy
Question:What is one reason the text gives for neural networks’ success in tasks like image recognition?
Answer:Ability to learn from large amounts of data through layers
Question:What is the central theme of 1.1 Overview of Neural Networks and Deep Learning?
Answer:Foundations, history, and significance of neural nets and deep learning
Question:What is the basic purpose of layers in a neural network?
Answer:Stack neurons to process data and learn representations.
Question:What is the role of the input layer in a neural network?
Answer:Receives data; each neuron represents a feature.
Question:What are hidden layers responsible for in a neural network?
Answer:Finding patterns and connections by adjusting weights and biases.
Question:What does the output layer represent in a neural network?
Answer:Possible outcomes (e.g., cat vs dog).
Question:What is a neuron’s function in a neural network?
Answer:Compute weighted sum plus bias and apply activation.
Question:What is the effect of a larger weight on a neuron's input?
Answer:Increases the input’s influence on the output.
Question:What is bias in a neural network?
Answer:An extra value added to adjust the output.
Question:How do activation functions influence learning in neural networks?
Answer:Decide whether to pass the neuron's output to the next layer.
Question:Name three common activation functions mentioned and their basic behavior.
Answer:Sigmoid; maps to 0-1; ReLU; outputs 0 for negatives, input for positives; Softmax; converts to class probabilities.
Question:What is the primary purpose of a loss function?
Answer:Quantify how far predictions are from true values.
Question:What does Mean Squared Error measure?
Answer:Average squared difference between predictions and actual values.
Question:What is Cross-Entropy Loss used for?
Answer:Classification tasks with probabilistic outputs.
Question:What happens when you minimize the loss function during training?
Answer:The network improves its predictions over time.
Question:How would you describe deep learning in simple terms?
Answer:Layered networks learn from large data to solve complex problems.
Question:Why are deep networks able to handle large data better?
Answer:They have many layers that extract intricate patterns.
Question:What is the difference between neural networks and deep learning?
Answer:Deep learning uses deeper architectures; neural networks are foundational.
Question:What does a neuron do with input values during processing?
Answer:Apply weights, add bias, apply activation to produce output.
Question:How are weights and biases updated during training?
Answer:Adjusted to minimize the loss.
Question:What is a multi-class problem in the context of softmax?
Answer:Classifies input into more than two categories.
Question:What is the significance of the activation function in a neural network’s output?
Answer:Determines impact of input and whether signal passes on.
Question:What analogy is used to describe learning from examples in neural networks?
Answer:Learning like humans learn from experiences and observations.
Question:What is the main idea behind a layered approach to driving decisions in the analogy?
Answer:Layers progressively refine decisions from simple to complex patterns.
Question:What does “deep” imply in deep learning?
Answer:More hidden layers enabling more complex representations.
Question:In classification tasks, what does the output layer’s neurons represent?
Answer:Possible class outcomes.
Question:What is the role of weights in a neural network?
Answer:Weights scale input signals to neuron outputs.
Question:What is the role of bias in a neuron?
Answer:Adds a constant value to help adjust output.
Question:What do activation functions do in neural networks?
Answer:Decide if neuron output should be passed on.
Question:What is sigmoid activation best for?
Answer:Producing probabilities between 0 and 1.
Question:What is ReLU activation?
Answer:Output is 0 for negative input, input for positive.
Question:What is softmax activation used for?
Answer:Converts outputs to probabilities across classes.
Question:What is a loss function in neural networks?
Answer:Measures how far predictions are from true values.
Question:What does Mean Squared Error (MSE) assess?
Answer:Average squared difference between predictions and targets.
Question:What is cross-entropy loss used for?
Answer:Classification tasks with probabilistic outputs.
Question:What is an optimizer in neural networks?
Answer:Updates weights/biases to reduce loss.
Question:Name two common optimizers.
Answer:SGD and Adam.
Question:What is forward pass in training?
Answer:Data flows from input to output to make a prediction.
Question:What is backpropagation?
Answer:Algorithm to compute gradients and update parameters.
Question:What does updating parameters achieve?
Answer:Moves model toward better predictions.
Question:What layers are in a basic neural network diagram?
Answer:Input, hidden, and output layers.
Question:What do input layer nodes x1, x2, x3 represent?
Answer:Different pieces of information fed into the model.
Question:What is the role of hidden layers?
Answer:Process data and learn patterns.
Question:What is the output layer responsible for?
Answer:Producing final predictions.
Question:Why are more hidden layers called a 'deeper' network?
Answer:More layers enable deeper feature representations.
Question:In the provided PyTorch example, what does nn.Linear(2,5) do?
Answer:Maps 2 inputs to 5 outputs (input to hidden).
Question:What activation is applied after the first linear layer in the example?
Answer:ReLU.
Question:What activation is used for the final output in the example?
Answer:Sigmoid.
Question:What loss function is used in the PyTorch example?
Answer:Mean Squared Error (MSE).
Question:What does optimizer.zero_grad() accomplish?
Answer:Clears gradients from the previous step.
Question:What is the purpose of loss.backward()?
Answer:Computes gradients via backpropagation.
Question:What does optimizer.step() do?
Answer:Updates model parameters using computed gradients.
Showing the first 200 of 459 cards. Open All cards to see the rest.