ML Exam Prep: 8 - Model Fitting
ML Exam Prep Model Fitting 1. Overfitting (Model is too complex) The Problem: Memorizes the training data (including its noise and random errors) instead of patterns. It scores 99% on training but performs terribly on new data. How to Prevent It: Increase Regularization : Penalizes large weights; L1 (Lasso) zeroes out weak features, L2 (Ridge) shrinks them. Increase Dropout : Randomly shuts off neurons during training to force generalized learning. Fewer Feature Combinations : Removes complex or noisy inputs to stop hyper-specific conclusions. Early Stopping : Halts training the moment validation loss begins to rise. Data Augmentation : Tweaks existing training samples (e.g., rotating images) to create new variety. 2. Underfitting (Model is too simple) The Problem: Fails capture the basic data patterns, performing poorly on both training and testing sets. How to Prevent It: Increase Model Complexity: Add layers/neurons or switch to a stronger algorithm. Decreas...