Practical overview
When it fits
Use Chefboost when a Python workflow needs tree-based modelling on tabular data, especially when categorical features are present or generated decision rules are useful.
Who it is for
- Python practitioners building decision-tree classification or regression workflows
- Data scientists working with datasets that include categorical features
- Developers who want to inspect generated tree rules or compare supported tree algorithms
Documented uses
- Fit a decision-tree model to a pandas DataFrame with a selected algorithm.
- Build regression trees or experiment with gradient boosting, random forests and AdaBoost.
- Generate and inspect Python decision rules.
- Predict outcomes for new instances using a trained or restored model.
Requirements & limits
The repository lists an MIT license. Its README documents installation from PyPI with pip.
- The framework supports both standard decision trees and named ensemble methods, including gradient boosting, random forests and AdaBoost.
- The README describes algorithm-specific criteria, including gain ratio for C4.5, Gini for CART and chi-square for CHAID.
- Saved-model restoration requires the Python and pickle files to be stored under the specified outputs/rules location.
Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.
Train a decision tree from a pandas DataFrame
Fit a configured decision-tree model to a dataset and obtain the trained model.
Before you start
- Python environment with Chefboost installed from PyPI
- Dataset available as a pandas DataFrame
- Target column identified
Steps
Install Chefboost with the command below.
pip install chefboostImport Chefboost and provide the dataset as a pandas DataFrame.
Set a configuration such as
{'algorithm': 'C4.5'}.Call
chef.fit(df, config=config, target_label='Decision')with the appropriate target column.
Expected outcome
A trained decision-tree model; the documented workflow stores generated decision rules as Python if-statements.
Guide limitations
- The example documents C4.5; other named standard algorithms include ID3, CART, CHAID and regression trees.
- The README states that numeric and nominal features and target values are handled without preprocessing for tree building.
Make a prediction with a trained model
Use an already fitted model to predict an outcome for a new instance.
Before you start
- A trained Chefboost model
- New instance values supplied in feature order
Steps
Pass the trained model and new instance values to
chef.predict.Read the returned prediction.
Expected outcome
A prediction for the supplied instance.
Guide limitations
- The example uses one instance and does not specify validation or evaluation procedures.
Sources & review
Source record details
- Source availability
- Active
- Sources checked
- 12 November 2026
- Original website title
- serengil/chefboost · Official homepage title · retained in its source language

