Convolutional Neural Networks
- 52Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
- spaceFlip card
- KI knew it
- DI didn't know it
- ←Previous card
- →Next card
What is machine learning?
A subdomain of computer science that focuses on algorithms that help a computer learn from data without explicit programming.
Or swipe the card
52 cards
What is machine learning?
A subdomain of computer science that focuses on algorithms that help a computer learn from data without explicit programming.
What is supervised learning?
A type of machine learning that uses labeled inputs (each input has a corresponding output label) to train models.
What is unsupervised learning?
A type of machine learning that uses unlabeled data to learn about patterns and structure in the data.
What is reinforcement learning?
A type of machine learning where an agent learns by interacting with an environment and receiving rewards or penalties for its actions.
In supervised learning, what is the input called?
Feature vector (a vector of numbers representing the input).
What are the two types of qualitative data?
Nominal (categories with no order) and ordinal (categories with a natural order).
What is nominal data?
Qualitative data with categories that have no inherent order, e.g., country of residence.
What is ordinal data?
Qualitative data with categories that have a natural order, e.g., happiness ranking (1-5).
What is quantitative data?
Numerical data that can be discrete (countable) or continuous (measurable).
Give an example of discrete quantitative data.
Number of Easter eggs collected (integer values 0, 1, 2, ...).
Give an example of continuous quantitative data.
Length of a desk (e.g., 5.289 feet).
What is classification in supervised learning?
Predicting discrete class labels (e.g., hot dog vs not hot dog).
What is binary classification?
Classification with exactly two classes (e.g., hot dog vs not hot dog).
What is multi-class classification?
Classification with more than two classes (e.g., classifying food into ten types).
What is regression in supervised learning?
Predicting a continuous numerical value (e.g., house price).
Why do we split data into training, validation, and test sets?
To train the model (training), select the best model (validation), and evaluate final generalization (test).
What is the purpose of the validation set?
To compare different models (or hyperparameters) and choose the best one before final testing.
What is the purpose of the test set?
To evaluate the final chosen model's performance on unseen data (check generalization).
What is loss in machine learning?
A metric that measures how far the model's predictions are from the actual values; lower loss means better performance.
Name two loss functions used for regression.
L1 loss (absolute difference) and L2 loss (squared difference).
What loss function is typically used for binary classification?
Binary cross-entropy loss.
What is accuracy?
The proportion of correctly predicted samples out of total samples.
What is overfitting?
When a model performs very well on training data but poorly on validation/test data because it memorized the training data instead of learning general patterns.
What is a neural network?
A model composed of layers of interconnected nodes (neurons), each with weights, biases, and activation functions, that can learn complex patterns.
What does a single neuron do?
Computes the weighted sum of its inputs plus a bias, then passes the result through an activation function.
Why are activation functions necessary in neural networks?
They introduce non-linearity, preventing the entire network from collapsing into a linear model.
Name three common activation functions.
Sigmoid, tanh, and ReLU.
Which activation function is often used as a default and why?
ReLU (Rectified Linear Unit) because it is simple and works well in practice.
What is gradient descent?
An optimization algorithm that iteratively updates model parameters (weights) in the direction of the negative gradient of the loss function to minimize loss.
What is the learning rate in gradient descent?
A small positive value that controls the step size when updating weights.
What is backpropagation?
An algorithm that computes the gradient of the loss with respect to each weight in the network by applying the chain rule backward through the layers.
What is a convolutional neural network (CNN)?
A class of deep learning networks designed for image classification that uses convolutional layers, pooling layers, and fully connected layers.
What does a convolution layer do in a CNN?
It slides a learnable filter (kernel) over the input image, performing element-wise multiplication and summation to produce a feature map.
What is a filter (kernel) in a CNN?
A small matrix of learnable weights that is convolved with the input to extract features.
What is pooling in a CNN?
A downsampling operation that reduces the spatial dimensions of feature maps, retaining important information.
What is max pooling?
A pooling operation that takes the maximum value from each local region (e.g., 2x2 window) of the input.
What is average pooling?
A pooling operation that takes the average of all values in a local region.
Why do we flatten feature maps before fully connected layers?
To convert the 2D or 3D feature maps into a 1D vector that can be input to the dense layers.
What is the role of fully connected layers at the end of a CNN?
To perform the final classification (or regression) based on the features extracted by convolutional and pooling layers.
How are images represented for CNNs?
As a 3D array of pixel values: height × width × number of color channels (e.g., 3 for RGB).
Why do we rescale pixel values to [0,1] in CNNs?
To normalize the input, making training more stable and faster.
What is data augmentation?
Applying random transformations (e.g., flips, rotations, shifts) to training images to increase dataset diversity and reduce overfitting.
What is dropout in neural networks?
A regularization technique that randomly drops a fraction of neurons during training to prevent overfitting.
What is kernel regularization?
A technique that adds a penalty to the loss function based on the magnitude of the weights (e.g., L2 regularization) to prevent overfitting.
What optimizer is commonly used in training CNNs with TensorFlow?
Adam optimizer.
What loss function should be used for binary classification in TensorFlow?
BinaryCrossentropy with
from_logits=Trueif the final layer does not use a sigmoid activation.What is batching in training?
Processing multiple samples (a batch) together in one forward/backward pass to improve efficiency and convergence.
What is caching in TensorFlow data pipelines?
Saving the preprocessed dataset in memory or on disk to avoid repeating expensive operations (e.g., file reading) each epoch.
What is prefetching in TensorFlow data pipelines?
Overlapping data preprocessing with model training by preparing the next batch while the current batch is being trained.
How do you resize images in TensorFlow?
Using
tf.image.resize(image, (height, width)).What is the effect of too many epochs without regularization?
The model may overfit: training accuracy becomes high (e.g., 100%) while validation accuracy plateaus or decreases.
Name three techniques used in the hot dog project to reduce overfitting.
Data augmentation, dropout layers, and kernel regularization (L2).

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