By Fatskills Exam Guides Team — the exam nerds behind 28,500+ quizzes and 2.1M practice questions across 500+ global exams.
Overfitting happens when a model learns the noise and the signal in the training data, so it performs great on that data but poorly on new, unseen examples. Underfitting is the opposite: the model is too simple to capture the underlying pattern, yielding mediocre performance everywhere. The bias‑variance trade‑off formalizes this tension—high bias (under‑fit) + low variance vs. low bias (over‑fit) + high variance. In a real‑world pipeline—say a churn‑prediction model for a telecom provider—over‑fitting would let you “predict” churn perfectly on last month’s data but miss the next month’s churners, while under‑fitting would give you a bland 50 % accuracy that never improves, no matter how much data you add.
python if val_loss > best_val_loss * (1 + tol): patience += 1 else: best_val_loss = val_loss patience = 0 if patience >= max_patience: break
python mask = (np.random.rand(*layer.shape) > p).astype(float) layer_out = layer_out * mask / (1-p)
np.logspace(-4, 2, 100)
pandas
train_test_split
test_size=0.2
C=1.0
C
GridSearchCV
max_depth
min_samples_leaf
subsample
Dropout
L2
EarlyStopping
train_size
joblib.dump
0.001
StandardScaler
RobustScaler
Join 4M+ learners. Unlock unlimited quizzes, wrong-answer tracking, flashcards + reminders, study guides, and 1-on-1 challenges.