Learn the fundamental scikit-learn workflow: loading datasets, train/test split, fit/predict pattern, and basic evaluation.
1.Loading Datasets
Learn how to load built-in datasets from sklearn.datasets. These datasets return numpy arrays, which we'll convert to Polars DataFrames for easier exploration.
2.Exploring Data with Polars
Use Polars DataFrames for fast, expressive data exploration and analysis before modeling.
3.Train/Test Split
Learn to split data into training and test sets to evaluate model performance on unseen data.
4.The Fit/Predict Pattern
Master sklearn's core API pattern: create a model, fit it on training data, then predict on new data.
5.K-Nearest Neighbors
Learn K-Nearest Neighbors classification - a simple but powerful algorithm that classifies based on similarity to nearby points.
6.Decision Tree Classifier
Learn Decision Trees - interpretable models that make predictions by learning simple decision rules from features.
7.Accuracy Score
Learn to evaluate classifiers using accuracy - the proportion of correct predictions.
8.Confusion Matrix
Understand confusion matrices - a detailed breakdown of correct and incorrect predictions for each class.
9.Simple Linear Regression
Learn linear regression for predicting continuous values, using the same fit/predict pattern.
10.Making Predictions on New Data
Learn to use trained models to make predictions on completely new, unseen data.
11.Understanding Model Persistence
Learn how trained models can be saved and loaded for later use (conceptually - we'll use Python's pickle-like approach).
12.Working with Multiple Features
Understand how sklearn models handle multiple features and how to inspect feature importance.
13.Categorical vs Numerical Features
Understand the difference between categorical and numerical features and why preprocessing matters.
14.Basic Preprocessing
Introduction to data preprocessing: scaling features to improve model performance.
15.End-to-End Mini Project
Apply everything you've learned: load data, preprocess, train, and evaluate a complete ML pipeline.