serengil/chefboost
A Python decision-tree library for categorical data and inspectable rules
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
ChefBoost is an in-process Python library for tabular decision trees, not an LLM inference runtime. The entry point is from chefboost import Chefboost as chef; chef.fit(df, config=..., target_label=...) takes a pandas DataFrame and selects the training algorithm through configuration. A standalone tree chooses splits using its algorithm's criterion and recursively builds child nodes. Parallel mode can build branches concurrently.
The distinguishing output is a tree expressed as Python conditional logic: the example defines a findDecision function, and tests/outputs/rules is shown as the rule output directory. This offers a direct path from a training table to inspectable branch logic. The dependency manifest lists pandas, NumPy, tqdm, and psutil. The visible extension surface is algorithm selection through configuration; no plugin API or serving protocol is evidenced.
Key Capabilities & Differentiators
The standalone algorithms expose materially different split criteria: ID3 uses entropy and information gain, C4.5 uses entropy and gain ratio, CART uses Gini, CHAID uses chi-square, and the regression tree uses standard deviation. Random forest, gradient boosting, and AdaBoost are also available, so the same configuration-driven interface covers single trees, bagging, and boosting.
Training accepts both numeric and nominal features and target values, so basic categorical inputs do not require a separate encoding step merely to enter the training API. That is not a guarantee about data quality or edge cases: missing values, unseen categories, and high-cardinality fields should be tested on the intended dataset rather than inferred from the sample rule's fallback branch. Generated conditionals are most useful for direct inspection on a small tree; ensemble output should not be assumed to be equally easy to audit.
Trade-offs & Limitations
The main reason to choose ChefBoost over a general-purpose workflow such as scikit-learn is a specific need for classical split criteria, direct nominal inputs, or inspectable Python rules. If the priority is interoperability with an existing estimator pipeline, or maximizing performance with a dedicated boosting implementation, evaluate those alternatives on the same data. The evidence establishes algorithm coverage, not relative accuracy, throughput, or memory efficiency.
Python rules make small trees easy to inspect, but file output adds responsibility for versioning, input schema compatibility, and validating generated code before execution. Parallel training can reduce build time, but worker overhead and contention can offset the benefit on small datasets or shared hosts; compare against serial training. MIT is permissive for commercial adoption, while redistribution still carries notice obligations.
Hardware & Deployment Guide
Install with pip install chefboost and run it inside a Python process; the evidenced path does not require an inference server, database, or CUDA stack. requirements.txt lists pandas>=0.22.0, numpy>=1.14.0, tqdm>=4.30.0, and psutil>=5.4.3. These are lower bounds rather than a tested compatibility matrix. Pin and validate the Python and dependency versions used by the training job.
Parallelism is on by default and allocates half the available cores unless configured otherwise. Use num_cores to match the job's CPU budget, guard the parallel training entry point with if __name__ == '__main__':, or set enableParallelism to False for a serial baseline. Check write permissions and isolate output locations before running concurrent fits. No latest GitHub release is identified, so release milestones or a packaging cadence cannot be established from the available evidence.
Chefboost.fit accepts pandas DataFrames with numeric and nominal fields and supports explicit target selection via target_label.tests/outputs/rules shown as the output location.enableParallelism toggles the behavior and num_cores controls the core allocation.requirements.txt declares pandas, NumPy, tqdm, and psutil as minimum-version requirements.Teaching and comparing classical split criteria, prototyping tabular models with categorical inputs, and reviewing the branch logic of small trees.
You need LLM inference, a turnkey model-serving stack, or verified large-scale training performance and established pipeline interoperability.
Quick Start & Installation
pip install chefboostComparison vs. Top LLMs & Inference Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| chefboost ★ | 488 | — | Python | MIT | A Python decision-tree library for categorical data and inspectable rules |
| LightGBM | 19k | +35 | C++ | MIT | C++ gradient-boosted trees for tabular prediction and ranking |
| transformers | 169.6k | +337 | Python | Apache-2.0 | A PyTorch model-definition SDK for unified inference and training across modalit |
| pytorch | 105.9k | +299 | Python | — | Python-first tensor SDK for GPU-accelerated training and inference |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/serengil/chefboost.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about chefboost
How do I integrate ChefBoost and consume its output?
Chefboost from chefboost, pass a pandas DataFrame to fit, and select the algorithm in the config. Use target_label to name the target column explicitly. Training emits Python conditional rules; if those files become integration artifacts, manage them alongside the input schema and test them against representative records.Does ChefBoost need a GPU, and how should I budget CPU and memory?
num_cores explicitly or disable parallelism in a constrained job.Can I run ChefBoost internally or include it in a commercial product?
When would I choose ChefBoost over scikit-learn or a dedicated boosting library?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy