Skip to content

GRAND 1.0.0

Latest

Choose a tag to compare

@s-marton s-marton released this 20 Oct 08:56

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: GRANDEClassifier and GRANDERegressor with fit, predict, and predict_proba. All hyperparameters are constructor arguments, supporting clone, get_params, and scikit-learn pipelines. Includes pickling, save / load, and to(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_configs reproduces 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)
  • Example notebooks: New notebooks for binary classification, multiclass classification, and regression, including hyperparameter tuning.

Breaking Changes and Removed Features

  • Updated API: Replace GRANDE(params=...) with GRANDEClassifier(**params) or GRANDERegressor(**params). Parameter names remain unchanged, except random_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, and attach_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 < 1 on multiclass and small datasets.
  • Frequency encoding: Fixed crashes with use_freq_enc=True when using numeric embeddings or NumPy inputs.
  • Categorical consistency: Category codes are now consistent between fit and predict. 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).