# Your First scikit-learn Model: fit and predict

Every scikit-learn model follows the same three steps, make it, fit(X, y) to learn from examples, and predict(X) to guess for new ones, with the features X as a table even when there's only one, and a linear regression's learned slope and intercept kept in coef\_ and intercept\_.

![Cheat sheet: Your First scikit-learn Model: fit and predict](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/0d7996a9e279431cb8d7f810102d53ef.webp)

- Category: Machine Learning
- Level: Journeyman
- Tags: ai, Coefficient, Estimator, fit(), Model (ai), predict(), python
- Author: Gregor Dzierzon
- Updated: November 23, 2026

Source: https://www.ask-codey.com/cheat-sheets/ml-fit-and-predict-cheat-sheet
