Ch 2 Flashcards

1
Q

What is the loss function used in 1D linear regression?

A

Least squares loss function

The least squares loss function measures the average squared difference between predicted and actual values.

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

What is the goal of supervised learning?

A

Mapping from one or more inputs to one or more outputs

Supervised learning involves training a model using labeled data.

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

What is the purpose of the ‘predict’ function in the Python implementation?

A

To compute predictions: y = m * x + b

This function predicts output values based on input features and model parameters.

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

What does the Mean Squared Error (MSE) loss function measure?

A

Quantifies the error between predicted outputs and true outputs

MSE is calculated as the average of the squares of the errors.

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

What is the primary objective of the training process in supervised learning?

A

To develop a model that accurately represents the underlying patterns of the training data.

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

Fill in the blank: The technique used for updating model parameters in supervised learning is called _______.

A

gradient descent.

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

What is overfitting in the context of supervised learning?

A

When a model is too complex and fits to statistical peculiarities of data.

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

What distinguishes training from inference in a supervised learning model?

A

Training develops the model; inference uses the model to make predictions.

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

What is the definition of a derivative in the context of a function?

A

The rate of change of the output of the function with respect to its input at that point.

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

What are the components of a 1D linear regression model?

A

Parameters: y-offset, slope

The y-offset is the intercept, and the slope determines the steepness of the line.

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

True or False: The training process can be executed rapidly compared to inference.

A

False.

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

What type of data is used for testing a supervised learning model?

A

Separate test dataset of input/output pairs.

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

What does a loss function measure in supervised learning?

A

How bad the model is at mapping inputs to outputs.

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

What is the relationship assumption in 1D linear regression?

A

The relationship between input and output is a straight line.

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

What is the primary role of parameters in a supervised learning model?

A

Parameters affect the outcome of the equation.

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

What is the notation for inputs and outputs in a supervised learning model?

A

Inputs: Roman letters; Outputs: Normal letters.

17
Q

Fill in the blank: In regression tasks, we predict _______ values.

A

continuous.