lecture 2 Flashcards

(30 cards)

1
Q

What is the basic recipe for machine learning?

A

Abstract the problem, choose instances and features, choose a model class, search for a good model.

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

What are the common types of machine learning tasks?

A

Classification, Regression, Clustering, Density estimation, Generative Modeling, Online learning, Reinforcement Learning, Structured Output Learning.

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

What is regression in machine learning?

A

A method to predict a continuous target variable based on one or more features.

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

What is the difference between classification and regression?

A

Classification predicts discrete labels, while regression predicts continuous values.

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

What is the purpose of a loss function in machine learning?

A

To quantify the difference between predicted values and actual values, guiding model optimization.

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

What is the primary search method used in machine learning optimization?

A

Gradient descent.

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

What is the equation of a simple linear regression model?

A

f(x) = wx + b

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

What do w and b represent in linear regression?

A

w is the weight (slope), and b is the bias (intercept).

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

What happens if w is positive in a linear regression model?

A

The function increases as x increases.

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

What happens if w is negative in a linear regression model?

A

The function decreases as x increases.

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

What is the goal of linear regression?

A

To find the best-fitting line that minimizes the loss function.

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

What is a feature in machine learning?

A

An individual measurable property or characteristic of the data.

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

What is a target variable?

A

The variable that the model is trying to predict.

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

What is a dataset instance?

A

A single data point consisting of features and a target value.

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

What is the dot product in linear regression?

A

The sum of the products of corresponding elements in two vectors.

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

How does increasing the number of features affect a linear model?

A

It increases model complexity and may require additional optimization techniques.

17
Q

What is the name of the method used to find the best values for w and b?

A

Gradient Descent.

18
Q

What is overfitting in machine learning?

A

When a model learns noise in the training data instead of generalizing to new data.

19
Q

What is underfitting in machine learning?

A

When a model is too simple to capture patterns in the data.

20
Q

What is the difference between supervised and unsupervised learning?

A

Supervised learning has labeled data, while unsupervised learning does not.

21
Q

What is a weight in a machine learning model?

A

A parameter that determines the importance of a feature in predicting the target.

22
Q

What is the effect of a high learning rate in gradient descent?

A

Faster convergence but potential overshooting of the optimal solution.

23
Q

What is the effect of a low learning rate in gradient descent?

A

Slow convergence but more precise optimization.

24
Q

What does a high bias indicate in a machine learning model?

A

The model makes consistent errors and is too simple (underfitting).

25
What does a high variance indicate in a machine learning model?
The model is too sensitive to training data and does not generalize well (overfitting).
26
What is the difference between batch and stochastic gradient descent?
Batch gradient descent uses all data at once, while stochastic updates the model per data point.
27
What is the role of the intercept (b) in a linear regression model?
It determines where the regression line crosses the y-axis.
28
What is meant by normalizing features in machine learning?
Rescaling features to have a similar range to improve model performance.
29
What is a loss function used for in machine learning?
To measure how well a model's predictions match the actual values.
30
What is a hyperparameter in machine learning?
A configuration value that is set before training (e.g., learning rate, number of layers).