API reference#
Decision trees#
|
Soft Decision Tree Classifier (sklearn-compatible). |
Soft decision tree for regression, scikit-learn compatible. |
|
|
Torch-free copy of a fitted |
|
A trained |
Multivariate Decision Tree Classifier (sklearn-compatible). |
|
Omnivariate Decision Tree Classifier (sklearn-compatible). |
|
|
A trained Soft Decision Tree with its gates read as hard decisions. |
Mixtures of experts#
Hierarchical Mixture of Experts with Dropout Regularization. |
|
|
A trained mixture of experts with its gates read as hard routing decisions. |
Constructive and classical models#
|
GAL (Grow and Learn) Constructive Neural Network. |
|
Distance-Weighted K-Nearest Neighbors Classifier. |
Naive Bayes Classifier with selectable likelihood. |
Distillation#
|
One soft tree trained on what a strong model learned: fit trains the teacher on (X, y), then the student tree on the teacher's class probabilities on the same rows, on synthetic rows near them (synthetic) and on unlabelled rows if given (mixed with the true labels by alpha). |
|
A few soft trees trained on what a strong model learned: the same teacher and transfer rows as DistilledTree, then n_trees students, each on its own bootstrap sample of those rows. |
|
Fit a soft tree to the probabilities of a fitted classifier. |
|
Share of rows of X where student predicts the class teacher predicts. |
|
The student and how closely it follows the teacher. |
|
Synthetic rows near the rows of X, for a teacher to label (MUNGE, Bucila, Caruana and Niculescu-Mizil, "Model compression", KDD 2006). |
Statistical tests#
|
Alpaydın's Combined 5×2 Cross-Validation F Test. |
|
McNemar's Test for comparing two classifiers on the same test set. |
|
Paired t-test for classifier comparison. |
Explanations#
|
|
|
One gate on the dominant path. |
|