Repository navigation
GRANDE v1.0.0 — PyTorch Release
GRANDE is now a standalone PyTorch package with a scikit-learn-style API, tools for inspecting fitted ensembles, and the TabArena default configuration and hyperparameter search space.
Installation
pip install "GRANDE @ git+https://github.com/s-marton/GRANDE.git@1.0.0"With plotting support and dependencies for the example notebooks:
pip install "GRANDE[examples] @ git+https://github.com/s-marton/GRANDE.git@1.0.0"Highlights
- Scikit-learn-style API:
GRANDEClassifierandGRANDERegressorwithfit,predict, andpredict_proba. All hyperparameters are constructor arguments, supportingclone,get_params, and scikit-learn pipelines. Includes pickling,save/load, andto(device). Runs on CPU and GPU. - Standalone PyTorch package: No AutoGluon dependency. PyTorch settings are applied only during
fit/predict. - TabArena integration: Default hyperparameters match the TabArena configuration.
GRANDE.hpo.sample_configsreproduces the TabArena random search space. - Ensemble inspection and interpretability:
- Pruned trees on original features (
plot_tree,export_text) - Feature importances
- Per-sample estimator weights (
plot_estimator_weights,plot_top_estimators) - Shapley-value feature attributions (
explain_features) - Human-readable rules with coverage (
extract_rules)
- Pruned trees on original features (
- Example notebooks: New notebooks for binary classification, multiclass classification, and regression, including hyperparameter tuning.
Breaking Changes and Removed Features
- Updated API: Replace
GRANDE(params=...)withGRANDEClassifier(**params)orGRANDERegressor(**params). Parameter names remain unchanged, exceptrandom_seed→random_state. - TensorFlow implementation removed: The previous TensorFlow version remains available on PyPI as
GRANDE<=0.1.6. - Removed options:
use_multi_estimator_lr,estimator_lr_factors, andattach_preprocessed_data.
Bug Fixes
- Hyperparameter search performance: Fixed an issue where searches silently fell back to eager mode after a few models, resulting in 15–35× slower execution.
- Subsampling: Fixed crashes with
data_subset_fraction < 1on multiclass and small datasets. - Frequency encoding: Fixed crashes with
use_freq_enc=Truewhen using numeric embeddings or NumPy inputs. - Categorical consistency: Category codes are now consistent between
fitandpredict. Predictions for unseen categories no longer depend on other rows in the batch.
For full details, see the [CHANGELOG.md](https://github.com/s-marton/GRANDE/blob/master/CHANGELOG.md).