Never Forget Another Line of Code

Datasnips is a free code snippet hosting platform for Data Science & AI. It enables your code snippets to be organized, searchable & shareable.

LOGIN
PUBLIC SNIPPETS
LATEST SNIPPETS
TOP SNIPPETS
SNIPPET COLLECTIONS
ML CODE BUILDER
BLOG
POPULAR TAGS
#XGBOOST
#LIGHTGBM
#CATBOOST
#TENSORFLOW
#PANDAS
#MATPLOTLIB
#SEABORN
LOGIN
PUBLIC SNIPPETS
LATEST SNIPPETS
TOP SNIPPETS
SNIPPET COLLECTIONS
ML CODE BUILDER
BLOG

Classification With XGBoost, CatBoost & LightGBM Collection

Snippets for training classification models with XGBoost, CatBoost & LightGBM

Training
XGBOOST

How to Train XGBoost with Imbalanced Data Using Scale_pos_weight

XGBoost Binary Classification

XGBoost Multiclass Classification

CATBOOST

Catboost - Training a Regression Model on GPU

CatBoostClassifier - Binary Classification with Catboost

CatBoost Mulitclass Classification

LIGHTGBM

LGBMClassifier - Training a Binary Classification Model With LightGBM

LightGBM MultiClass Classification