QUESTION 9 OF 10

Why should you train a simple baseline first?

Reveal the answer and explore the explanation.

09
Easy

Why should you train a simple baseline first?

Answer
Answer

A baseline provides a reference for incremental value and can expose data or metric problems early.

Practical example

Compare a complex classifier against a majority-class rule and logistic regression.

PythonRelated concept example
from sklearn.dummy import DummyClassifier
X = [[1], [2], [3], [4]]
y = [0, 0, 0, 1]
model = DummyClassifier(strategy='most_frequent').fit(X,y)
print(model.predict([[5]]))

Compare a trained model to a simple baseline on independent data.

Reference: Further reading ↗

Last 30 min revisionHigh-yield interview Q&As