# Models in Python

Models in Python: A Model That Guesses, How to Tell When a Model Is Wrong.

Updated: November 19, 2026

1. [A Model That Guesses](https://www.ask-codey.com/lessons/python-taste-ml-a-model-that-guesses) (Apprentice): A machine learning model is a rule a program learns from examples instead of one you write, and scikit-learn's LinearRegression learns one from a lemonade stand's summer with fit, then guesses the cups a day will sell with predict.
2. [How to Tell When a Model Is Wrong](https://www.ask-codey.com/lessons/python-taste-ml-when-its-wrong) (Apprentice): 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.

Source: https://www.ask-codey.com/courses/python-in-depth/topics/python-taste-ml
