Regression

Linear models and optimization from first principles.

01 Regression

Linear Regression

Simple linear regression with housing price data.

Open notebook →
02 Regression

Multivariate Regression

Multiple features and multivariate linear regression.

Open notebook →
03 Optimization

Gradient Descent

Implement and visualize gradient descent optimization.

Open notebook →

Data preprocessing & models

Encoding, splits, persistence, and evaluation workflows.

04 Models

Save & Load Models

Serialize and restore models with pickle.

Open notebook →
05 Preprocessing

One-Hot Encoding

Encode categorical variables for ML pipelines.

Open notebook →
06 Preprocessing

Train / Test Split

Split datasets for training and evaluation.

Open notebook →
12 Evaluation

K-Fold Cross-Validation

Robust model evaluation with k-fold CV.

Open notebook →

Classification

Logistic regression through SVM, trees, and naive Bayes.

07 Classification

Logistic Regression

Binary classification on insurance data.

Open notebook →
08 Classification

Multiclass Logistic

Multi-class logistic regression.

Open notebook →
14 Naive Bayes

Titanic Survival

Naive Bayes on the Titanic dataset.

Open notebook →
14 Naive Bayes

Email Spam Filter

Text classification with naive Bayes.

Open notebook →

Ensembles & clustering

Random forests, bagging, and unsupervised clustering.

11 Ensemble

Random Forest

Random forest classifier and regressor.

Open notebook →

Advanced topics

Regularization, dimensionality reduction, and feature engineering.

16 Regularization

L1 & L2 Regularization

Lasso and Ridge on housing data.

Open notebook →
18 PCA

Principal Component Analysis

Dimensionality reduction on digits data.

Open notebook →
20 Feature engineering

Outliers (Percentile)

Percentile-based outlier detection.

Open notebook →
20 Feature engineering

Outliers (Z-Score)

Z-score based outlier detection.

Open notebook →
20 Feature engineering

Outliers (IQR)

Interquartile range outlier detection.

Open notebook →

Tech stack

Run locally

git clone https://github.com/lokeshpuma/Machine_Learning.git
cd Machine_Learning
pip install jupyter scikit-learn pandas numpy matplotlib seaborn
jupyter notebook