Models in Python

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

Updated

  1. 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 (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.