Snippet Collections

Collections of popular snippets grouped by themes and use cases.

Data Preprocessing with Pandas
A collection of data preprocessing code snippets to prepare tabular data using Pandas for analysis, machine learning or visualisation
Classification with SciKit-Learn
Code snippets for building a range of classification machine learning models using SciKit-Learn
Regression with SciKit-Learn
Code snippets for building a range of regression machine learning models using SciKit-Learn
Data Preparation For Machine Learning
Code snippets for preparing data for machine learning
Classification With XGBoost, CatBoost & LightGBM
Snippets for training classification models with XGBoost, CatBoost & LightGBM
Regression With XGBoost, CatBoost & LightGBM
Code snippets for training regression models with XGBoost, CatBoost and LightGBM
Evaluating Machine Learning Models
Code snippets for evaluation classification and regression machine learning models
Unsupervised Learning With SciKit-Learn
Code for training unsupervised machine learning models with SciKit-Learn