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.
2
Q
What is underfitting?
A
Failing to capture relevant patterns, leading to less accurate predictions.
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
4
Q
What is the syntax to import the scikit-learn library function DecisionTreeRegressor?
A
from sklearn.tree import DecisionTreeRegressor
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.