Machine Learning

Explore data analysis, exploratory data analysis (EDA), feature engineering, and the implementation of classic machine learning models using Scikit-Learn, Pandas, and NumPy.

Machine Learning Tutorials (39)

Browse, search, and work through all available articles for this category.

39 shown · All
Feature Engineering: Variable Magnitude
Oct 4, 202016 min readFeature Engineering

Feature Engineering: Variable Magnitude

Understand the impact of feature magnitude on ML algorithms, and learn scaling techniques in Python including Standard, MinMax, and Robust scaling.

Read Tutorial
Feature Engineering: Outlier Detection
Oct 3, 202027 min readFeature Engineering

Feature Engineering: Outlier Detection

Detect and handle outliers in Python using IQR and Z-score methods, with boxplot and Q-Q plot visualization and practical boundary calculations.

Read Tutorial
Feature Engineering: Linear Model Assumptions
Oct 2, 202030 min readFeature Engineering

Feature Engineering: Linear Model Assumptions

Detect and fix violations of linear model assumptions: linearity, normality, homoscedasticity, and multicollinearity, with Q-Q plots and log transforms.

Read Tutorial
Feature Engineering: Rare Labels
Oct 1, 202020 min readFeature Engineering

Feature Engineering: Rare Labels

Learn what rare labels are in categorical variables, why they cause overfitting and train/test mismatches, and how to group them safely in Python.

Read Tutorial
Cardinality in Machine Learning
Sep 29, 202029 min readData Preprocessing

Cardinality in Machine Learning

Understand cardinality in categorical variables and its effect on model performance. Learn to handle high-cardinality features using Python techniques.

Read Tutorial
Missing Values and Their Mechanisms
Sep 28, 202019 min readData Preprocessing

Missing Values and Their Mechanisms

Understand MCAR, MAR, and MNAR missing data mechanisms and their impact on machine learning. Covers detection, analysis, and treatment strategies using Python.

Read Tutorial
Data Variable Types Every Data Scientist Needs
Sep 26, 202030 min readData Analysis & EDA

Data Variable Types Every Data Scientist Needs

A practical guide to the four variable types in any dataset: numeric, categorical, date-time, and mixed, with examples from a real loan dataset.

Read Tutorial
Matplotlib Crash Course
Sep 19, 202021 min readData Analysis & EDA

Matplotlib Crash Course

A hands-on crash course covering matplotlib's pyplot API and object-oriented interface: line plots, scatter, bar, histograms, box plots, subplots, and axis controls.

Read Tutorial
Data Visualization with Pandas
Sep 18, 202030 min readData Analysis & EDA

Data Visualization with Pandas

A hands-on guide to building line, bar, histogram, box, scatter, KDE, Andrews curve, and subplot visualizations directly from a pandas DataFrame or Series.

Read Tutorial
Pandas Crash Course
Sep 17, 202030 min readData Analysis & EDA

Pandas Crash Course

Learn the fundamentals of pandas DataFrames, loading CSVs, column operations, handling missing values, mean imputation, and correlation analysis.

Read Tutorial
Resume and CV Summarization
Sep 14, 202014 min readText & Sentiment

Resume and CV Summarization

Build a resume parser using spaCy NER trained on 200 resumes. Extract names, skills, and experience fields automatically from new CV documents in Python.

Read Tutorial
LinkedIn Profile Scraper in Python
Sep 6, 202029 min readPython Projects

LinkedIn Profile Scraper in Python

Scrape public LinkedIn profile data using Selenium and BeautifulSoup in Python. Covers automated login, profile extraction, and exporting structured results.

Read Tutorial
LinkedIn Auto Connect Bot
Sep 5, 202010 min readPython Projects

LinkedIn Auto Connect Bot

Build a LinkedIn automation bot in Python using Selenium and BeautifulSoup that sends personalized connection requests to suggested profiles automatically.

Read Tutorial
Real-Time Phone Call Sentiment Analysis
Sep 2, 202016 min readText & Sentiment

Real-Time Phone Call Sentiment Analysis

Build a Python pipeline that transcribes live microphone audio and classifies sentiment polarity in real time using NLTK and TextBlob.

Read Tutorial
Download HD Wallpapers from Unsplash API
Aug 30, 202012 min readPython Projects

Download HD Wallpapers from Unsplash API

Automate HD wallpaper downloads from Unsplash using Python and the Unsplash API. Covers API authentication, search parameters, and automatic image saving.

Read Tutorial
Star Rating Prediction with SVM and TF-IDF
Aug 28, 202024 min readText & Sentiment

Star Rating Prediction with SVM and TF-IDF

Predict Amazon product star ratings from review text using TF-IDF vectorization and a Support Vector Machine classifier in Python with scikit-learn.

Read Tutorial
Complete Seaborn Tutorial in Python
Aug 26, 202030 min readData Analysis & EDA

Complete Seaborn Tutorial in Python

A hands-on guide to seaborn covering relational, categorical, distribution, and regression plots with the tips, fmri, iris, and Titanic datasets.

Read Tutorial
Sentiment Analysis with Scikit-learn
Aug 25, 202020 min readText & Sentiment

Sentiment Analysis with Scikit-learn

Build a binary sentiment classifier for IMDB movie reviews using TF-IDF text vectorization and a Linear Support Vector Machine in Python with scikit-learn.

Read Tutorial
Multi-Label Text Classification on Stack Overflow Tag Prediction
Aug 25, 202023 min readText & Sentiment

Multi-Label Text Classification on Stack Overflow Tag Prediction

Predict Stack Overflow tags with multi-label classification: TF-IDF vectorization, OneVsRest strategy, and Hamming loss and Jaccard score evaluation.

Read Tutorial
Feature Selection with ROC-AUC and MSE
Aug 11, 202030 min readFeature Selection

Feature Selection with ROC-AUC and MSE

Select features with ROC-AUC for classification and MSE for regression: score every feature individually, rank them, and keep the most predictive.

Read Tutorial
Feature Selection: Fisher Score & Chi2
Aug 11, 202025 min readFeature Selection

Feature Selection: Fisher Score & Chi2

Apply Fisher Score and Chi-squared tests for feature selection on the Titanic dataset in Python. Covers categorical feature scoring with scikit-learn chi2.

Read Tutorial
Feature Selection: Univariate ANOVA Test for Classification
Aug 11, 202022 min readFeature Selection

Feature Selection: Univariate ANOVA Test for Classification

Use univariate ANOVA F-tests to rank and select the most informative classification features with f_classif and SelectKBest in scikit-learn.

Read Tutorial
Feature Selection with Mutual Information
Aug 11, 202030 min readFeature Selection

Feature Selection with Mutual Information

Learn how to use mutual information (entropy gain) to select the most predictive features for classification and regression in Python with scikit-learn.

Read Tutorial
Feature Selection with Filter Method
Aug 10, 202030 min readFeature Selection

Feature Selection with Filter Method

Remove constant, quasi-constant, and duplicate features from ML datasets using Python. Covers VarianceThreshold and correlation-based duplicate feature removal.

Read Tutorial
Dimensionality Reduction with LDA and PCA in Python
Aug 10, 202028 min readDimensionality Reduction

Dimensionality Reduction with LDA and PCA in Python

Reduce high-dimensional feature spaces with LDA and PCA in scikit-learn: applied to the Santander dataset with accuracy and speed comparisons.

Read Tutorial
Lasso and Ridge Coefficients for Feature Selection
Aug 10, 202030 min readFeature Selection

Lasso and Ridge Coefficients for Feature Selection

Learn how to use linear and logistic regression coefficients with Lasso (L1) and Ridge (L2) regularization to select the most informative features in Python.

Read Tutorial
Recursive Feature Elimination (RFE) in Python
Aug 10, 202030 min readFeature Selection

Recursive Feature Elimination (RFE) in Python

Apply Recursive Feature Elimination (RFE) with Random Forest and Gradient Boosting to select the most predictive breast cancer dataset features.

Read Tutorial
Step Forward, Step Backward, and Exhaustive Feature Selection
Aug 9, 202030 min readFeature Selection

Step Forward, Step Backward, and Exhaustive Feature Selection

Learn how to use wrapper-based feature selection: Sequential Forward, Backward, and Exhaustive Search with mlxtend and scikit-learn on the Wine dataset.

Read Tutorial
Lasso and Ridge Regularization for Feature Selection
Aug 8, 202030 min readFeature Selection

Lasso and Ridge Regularization for Feature Selection

Learn how Lasso (L1) and Ridge (L2) regularization act as embedded feature selectors. Apply SelectFromModel and RidgeClassifierCV on the Titanic dataset in Python.

Read Tutorial
Logistic Regression with Python
Aug 8, 202030 min readML Algorithms

Logistic Regression with Python

From sigmoid to cost function. Build a Titanic survival classifier with scikit-learn, recursive feature elimination, and ROC-AUC evaluation.

Read Tutorial
PCA with Python: Principal Component Analysis
Aug 8, 202018 min readDimensionality Reduction

PCA with Python: Principal Component Analysis

Learn how PCA works, then reduce 30 breast-cancer features to 2 components with scikit-learn while retaining maximum variance.

Read Tutorial
KNN Algorithm in Python
Aug 8, 202025 min readML Algorithms

KNN Algorithm in Python

Implement a tuned K-Nearest Neighbors classifier with scikit-learn, including feature standardization and cross-validation to find the optimal K.

Read Tutorial
K-Means Clustering in Python
Aug 7, 202022 min readML Algorithms

K-Means Clustering in Python

Learn how K-Means clustering works and implement it with scikit-learn: centroid initialization, the elbow method, inertia, and cluster visualization.

Read Tutorial
Linear Regression with Python
Aug 7, 202030 min readML Algorithms

Linear Regression with Python

Learn linear regression with scikit-learn on the Boston housing dataset: simple and multiple regression, feature selection, and R2, MAE, MSE evaluation.

Read Tutorial
Random Forest Classifier and Regressor with Python
Aug 7, 202024 min readML Algorithms

Random Forest Classifier and Regressor with Python

Learn how Random Forest combines decision trees through bagging, train a regressor and a classifier with scikit-learn and extract feature importances.

Read Tutorial
Speed Up Training with Bagging
Aug 7, 202012 min readML Algorithms

Speed Up Training with Bagging

Cut training time by splitting data across parallel estimators. Implement a BaggingClassifier with SVM on Iris and benchmark against a single model.

Read Tutorial
Ensemble Learning in Python
Aug 7, 202016 min readML Algorithms

Ensemble Learning in Python

Learn how bagging, boosting, and voting combine models to boost accuracy. Train Random Forest, AdaBoost, Gradient Boosting, and XGBoost with scikit-learn.

Read Tutorial
Decision Tree in Python
Aug 7, 202024 min readML Algorithms

Decision Tree in Python

Train decision tree classifiers and regressors in Python with scikit-learn. Covers splitting criteria, key hyperparameters, pruning, and model evaluation.

Read Tutorial
SVM with Python: Support Vector Machines
Aug 7, 202022 min readML Algorithms

SVM with Python: Support Vector Machines

Learn how SVMs work: hyperplanes, margin maximization, and kernel tricks, and train classifiers on the breast cancer dataset with scikit-learn.

Read Tutorial