Lecture 8 - Deep Learning Basics Flashcards
What is machine learning for visual perception?
Machine learning for visual perception involves discovering and leveraging patterns in images to make predictions or classifications based on visible patterns. It includes tasks like segmentation, detection, and recognition.
Describe supervised learning.
Supervised learning involves training a model with labeled examples, where each example has both features (images) and corresponding labels related to the task, such as segmentation or recognition.
What is unsupervised learning?
Unsupervised learning involves modeling, representing, or describing the variability within data without specific labels. It is used for tasks like noise removal, super-resolution, and deconvolution.
Explain the concept of a cost function in machine learning.
A cost function is used to define “best” parameters for a model by measuring the error between the model’s predictions and the ground truth labels. Examples include cross-entropy for classification and mean squared error for regression.
What is a perceptron?
A perceptron is a simple linear classifier used for binary classification. It consists of an activation function (linear transformation of inputs) and a nonlinearity (e.g., sigmoid function) to produce the output.
Describe the architecture of a multilayer perceptron (MLP).
An MLP consists of an input layer, one or more hidden layers, and an output layer. Each layer is composed of neurons that apply a linear transformation followed by a non-linear activation function, enabling the network to model complex functions.
What is the purpose of backpropagation in training neural networks?
Backpropagation is an algorithm used to train neural networks by computing the gradient of the cost function with respect to each weight and updating the weights to minimize the cost function.
Explain the role of the activation function in neural networks.
The activation function introduces non-linearity into the network, allowing it to learn and model complex relationships between inputs and outputs. Common activation functions include sigmoid, tanh, and ReLU.
What is a fully connected layer in a neural network?
A fully connected layer is a layer where each neuron is connected to every neuron in the previous layer, enabling complex interactions between features and contributing to the network’s ability to learn representations.
Describe the softmax function used in neural networks.
The softmax function is used in the output layer of a neural network for multi-class classification. It converts raw output scores (logits) into probabilities by exponentiating the scores and normalizing them.
What is the difference between a training set, validation set, and test set?
The training set is used to learn model parameters, the validation set is used to tune hyperparameters and prevent overfitting, and the test set is used to evaluate the model’s generalization performance on unseen data.
Explain the concept of overfitting in machine learning.
Overfitting occurs when a model learns to perform well on the training data, including its noise and outliers, but fails to generalize to new, unseen data, resulting in poor performance on the test set.
Provide the formula for the gradient descent update rule.
Write the cost function for logistic regression.
Write the formula for the output of a neuron in an MLP.