hgboost - Hyperoptimized Gradient Boosting

hgboost
is short for Hyperoptimized Gradient Boosting and is a python package for hyperparameter optimization for xgboost, catboost and lightboost using cross-validation, and evaluating the results on an independent validation set.
hgboost
can be applied for classification and regression tasks.
hgboost
is fun because:
* 1. Hyperoptimization of the Parameter-space using bayesian approach.
* 2. Determines the best scoring model(s) using k-fold cross validation.
* 3. Evaluates best model on independent evaluation set.
* 4. Fit model on entire input-data using the best model.
* 5. Works for classification and regression
* 6. Creating a super-hyperoptimized model by an ensemble of all individual optimized models.
* 7. Return model, space and test/evaluation results.
* 8. Makes insightful plots.
⭐️ Star this repo if you like it ⭐️
Blogs
Medium Blog 1:
The Best Boosting Model using Bayesian Hyperparameter Tuning but without Overfitting.
Medium Blog 2:
Create Explainable Gradient Boosting Classification models using Bayesian Hyperparameter Optimization.
On the documentation pages you can find detailed information about the working of the hgboost
with many examples.
Colab Notebooks
-
Regression example
-
Classification example
Schematic overview of hgboost
Installation Environment
conda create -n env_hgboost python=3.8
conda activate env_hgboost
Install from pypi
pip install hgboost
pip install -U hgboost
Import hgboost package
import hgboost as hgboost
Examples
Classification example for xgboost, catboost and lightboost:
from hgboost import hgboost
hgb = hgboost(max_eval=10, threshold=0.5, cv=5, test_size=0.2, val_size=0.2, top_cv_evals=10, random_state=42)
results = hgb.xgboost(X, y, pos_label='survived')
hgb.plot_validation()
References
* http://hyperopt.github.io/hyperopt/
* https://github.com/dmlc/xgboost
* https://github.com/microsoft/LightGBM
* https://github.com/catboost/catboost
Maintainers
Contribute
- Contributions are welcome.
Licence
See LICENSE for details.
Coffee
- If you wish to buy me a Coffee for this work, it is very appreciated :)