Skip to content

v0.10.0

Latest

Choose a tag to compare

@cgrtml cgrtml released this 28 Nov 22:15
· 1 commit to main since this release

Added

  • neural_trees.audit, the protocol of an equal-size comparison as a tool. size(model) returns a model's size in the unit of its family: nonzero decision weights for SoftDecisionTree, SoftDecisionTreeRegressor, NumpySoftTree, HardDecisionTree, MultivariateDecisionTree, linear models and scikit-learn MLPs (biases not counted); splits for scikit-learn trees and tree ensembles, imodels FIGS, DistilledFIGS, XGBoost and LightGBM; score cells for EBM. Distilled and DistilledForest are sized by their students, and register_size adds a family. reading_cost(model, X) gives the number of trees, the deepest tree and the mean number of split tests a row passes through, for FIGS, DistilledFIGS and scikit-learn trees. paired and holm are the paired statistics (mean difference, bootstrap interval, wins and losses, Wilcoxon signed-rank, Holm). Audit fits model families at their budgets on the training rows of each cell, scores selection rows any number of times, freezes the models, hypotheses and cell names into a lock file with a SHA-256 hash, and scores the test rows once: a second test, or a test whose plan differs from the frozen one, raises AuditLockError. The report warns when a model stopped below its budget and when two compared models are counted in units that do not compare.