scikit-learn 1 · Training models

Use gradient boosting

A strong, fast model for tabular data that handles missing values natively.

from sklearn.ensemble import HistGradientBoostingClassifier

boost = HistGradientBoostingClassifier(random_state=42).fit(X_train, y_train)

Official scikit-learn 1 documentation

More training models commands

All training models commands · scikit-learn 1 cheatsheet

Was this page helpful?