ML-03 - Regularization in regression Flashcards

1
Q

ML-03 - Regularization in regression

Does underfitting mean that the model has high bias or high variance?

A

High bias

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

ML-03 - Regularization in regression

Does overfitting mean that the model has high bias or high variance?

A

High variance

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

ML-03 - Regularization in regression

How can your model respond if you have random noise in the training dataset?

A

Overfitting

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

ML-03 - Regularization in regression

If the training sample size is too small, does that cause underfitting or overfitting?

A

Overfitting?

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

ML-03 - Regularization in regression

If the number of features is too large, does that cause underfitting or overfitting?

A

Overfitting

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

ML-03 - Regularization in regression

If you simplify the assumptions in your model so that the target function is easier to approximate, can that cause overfitting or underfitting?

A

Underfitting.

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

ML-03 - Regularization in regression

How do you address overfitting? (2)

A
  • Reduce the number of features
  • Regularization (Keep features, but reduce weight values)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

ML-03 - Regularization in regression

What is the formula for L2 regularization?

A

See image

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

ML-03 - Regularization in regression

What is the effect of setting lamba too high in regularization?

A

Weights are penalized too much, turns into a straight line (h_w(x) = w_0 + 0*w_1 + …) -> underfitting.

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

ML-03 - Regularization in regression

What is the effect of setting lamba too low in regularization?

A

No penalization effect -> overfitting

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

ML-03 - Regularization in regression

Describe regularized linear regression with gradient descent.

A

(See image)

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

ML-03 - Regularization in regression

Describe how to add regularization to the normal equation.

A

(See image)

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

ML-03 - Regularization in regression

Describe how to add regularization to logistic regression

A

(See image)

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