Underfitting and Overfitting Flashcards

1
Q

What is overfitting?

A

Capturing spurious patterns that won’t recur in the future, leading to less accurate predictions.

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

What is underfitting?

A

Failing to capture relevant patterns, leading to less accurate predictions.

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

What is the syntax to import the scikit-learn library function that calculates the MAE?

A

from sklearn.metrics import mean_absolute_error

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

What is the syntax to import the scikit-learn library function DecisionTreeRegressor?

A

from sklearn.tree import DecisionTreeRegressor

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

What is the get() method used for?

A

It is to return the value of a given key that is present in a dictionary. If it is not present, it returns with None.

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