How to Tell When a Model Is Wrong

Hold some examples back with train_test_split and a fixed random_state, measure the model's guesses on them with the mean absolute error, and see why a score on the training data misleads and when a model's guesses shouldn't be trusted at all.

By

Updated

Cheat sheet: How to Tell When a Model Is Wrong
Category
Python
Level
Apprentice
Tags
ai, Mean Absolute Error, Overfitting, python, Random Seed, Test Data, Training Data