Neural Networks & Deep Learning Flashcards

Explore how neural networks and deep learning models function and are applied. (25 cards)

1
Q

Define:

neural network

A

It is a series of algorithms that attempts to recognize underlying relationships in a set of data through a process that mimics the human brain.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is a neuron in the context of a neural network?

A

This is the basic unit in a neural network that receives input, processes it with weights, and produces an output.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is an activation function in a neural network?

A

It is a mathematical function applied to a neuron’s output to introduce non-linearity into the model.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

True or False:

Without activation functions, neural networks would only be able to model linear relationships.

A

True

Activation functions introduce non-linearity, allowing neural networks to learn complex patterns beyond linear relationships.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Fill in the blank:

The ______ activation function outputs values between 0 and 1.

A

sigmoid

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is the purpose of the ReLU activation function?

(Rectified Linear Unit)

A

This function helps introduce non-linearity by outputting the input directly if it’s positive, otherwise it outputs zero.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Explain the concept of backpropagation in neural networks.

A

It is a training algorithm for neural networks that involves adjusting weights based on the error rate obtained in the previous epoch (iteration).

This process involves calculating the gradient of the loss function with respect to each weight by the chain rule, allowing the model to learn.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What does CNN stand for, and what is it used for?

A

CNN stands for Convolutional Neural Network, and it is primarily used for image processing tasks, such as classification and object detection.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

How do convolutional layers in CNNs work?

A

Convolutional layers apply a set of filters to the input data to extract features such as edges and textures.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is pooling in the context of CNNs, and why is it important?

A

This is a down-sampling technique used in CNNs to reduce the spatial dimensions of the feature maps, thereby lowering the computational cost and controlling overfitting.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is an RNN, and what types of data is it best suited for?

(Recurrent Neural Network)

A

This is a type of neural network designed to recognize patterns in sequences of data like time series or natural language.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Fill in the blank:

RNNs are unique because they have loops, allowing information to ______ over time.

A

persist

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is a common challenge when training RNNs, and how is it addressed?

A

It is the vanishing gradient problem, which can be addressed using architectures like LSTM (Long Short-Term Memory) that help preserve gradients.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What does GAN stand for, and what is its primary function?

A

GAN stands for Generative Adversarial Network, and it is used to generate new, synthetic instances of data that can mimic the original data.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Describe the two main components of a GAN.

A

It consists of a generator that creates fake data, and a discriminator that evaluates the authenticity of the data, working together to improve the quality of the generated data.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

True or False:

In a GAN, the generator and discriminator are trained simultaneously.

A

True

Generative Adversarial Networks (GANs) involve a generator and a discriminator that are trained together in a competitive process to improve each other’s performance.

17
Q

What is the primary goal of the generator in a GAN?

A

Create data that is indistinguishable from real data, fooling the discriminator into thinking it’s authentic.

18
Q

How does backpropagation help improve neural networks over time?

A

Adjusting the weights to minimize the difference between the actual and predicted outputs.

19
Q

Which type of neural network would be best for predicting the next word in a sentence?

A

Recurrent Neural Network

(RNN)

RNNs are suited for sequential data, making them ideal for tasks like predicting sequences in natural language.

20
Q

What advantage does a CNN have over a traditional neural network when processing images?

A

CNNs are specifically designed to recognize patterns and features in images, such as edges and textures, making them more efficient for image-processing tasks.

21
Q

Explain how a LSTM network improves upon a basic RNN.

A

It improves upon basic RNNs by using memory cells that can maintain information in memory for long periods, which helps address the vanishing gradient problem.

22
Q

In which scenarios would you use a GAN?

A

GANs are used in scenarios requiring realistic data generation, such as creating deepfake videos, generating art, or augmenting datasets for training AI models.

23
Q

What role do weights play in a neural network?

A

Weights are adjustable parameters within a neural network that influence the strength of the input signals, shaping the network’s ability to learn from data.

24
Q

Fill in the blank:

The main challenge with training deep neural networks is the ______ gradient problem.

25
Which neural network **technique** might you use to **classify handwritten digits**?
Convolutional Neural Network | (CNN) ## Footnote CNNs are effective for image classification tasks, such as recognizing patterns in handwritten digits.