# 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.

![Cheat sheet: How to Tell When a Model Is Wrong](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/c05844e62f304bd0bdae8140252dac58.webp)

- Category: Python
- Level: Apprentice
- Tags: ai, Mean Absolute Error, Overfitting, python, Random Seed, Test Data, Training Data
- Author: Gregor Dzierzon
- Updated: November 23, 2026

Source: https://www.ask-codey.com/cheat-sheets/python-taste-ml-when-its-wrong-cheat-sheet
