Skip to content

0.3.0

Latest

Choose a tag to compare

@rafapras rafapras released this 27 Nov 01:32
4590f8e

Highlights

  • Faster Interleaved Tree Models at scale: fused L1-resident column-major Numba kernel (best_leaf_cuts_T) and single-pass logistic gradient computation in node_hist_margin (bit-for-bit identical predictions; fits 1.00M × 31 rows in ~5.3 s and 1.66M × 11 rows in ~4.4 s on 4 cores at 16 cuts).
  • Native categorical splits: CategoricalInterleavedTreeClassifier (alias CategoricalFIGSClassifier), automatically dispatched by BudgetClassifier(max_splits=b, categorical_features="auto") on DataFrames with categorical/string columns (purely numeric inputs stay bit-for-bit identical):
    • Fisher-optimal Newton ratio ordering with rare-in-leaf pooling (min_cat_weight) and Rissanen MDL subset complexity regularization (cat_dof_penalty).
    • Separate missing (NaN) vs other / unseen category codes so unseen test-time categories route to the majority side of each split.
    • Automatic min_cat_coverage guardrail keeping near-unique strings/ISO-8601 timestamps chronologically ordered via leak-free searchsorted binning and exact SQL string comparisons.
    • Optional max_subset_size cap for bounded, compact categorical rules.
  • SQL & scikit-learn fixes: to_sql() defaults to null_safe=True, supports custom score_col/proba_col, zero-tree edge cases, and categorical + timestamp SQL; FastDecisionTreeClassifierCV adds the allow_nan tag and sklearn delegation (predict_log_proba, get_depth, get_n_leaves, feature_importances_); RashomonFIGSClassifier uses leaf-order-invariant structural deduplication (_forest_key).
  • Experimental & Lab: new families in bettertrees.experimental (HingeFIGSClassifier, CausalFIGS, BudgetRegressor/FIGSRegressor/SumOfOptimalTreesRegressor, rashomon_mcr) and research archive in bettertrees.lab (LookaheadFIGSClassifier, CompactTreeBoosterV2, L2FIGSClassifier, SparseTreeSumClassifier, ResidualRatioFIGSClassifier).
  • Docs & Examples: new examples/05_categorical_and_sql.ipynb notebook and stacked 38-dataset benchmark report in docs/BENCHMARKS.md.