Shared utilities for implementing different interpretable models.
Expand source code
'''Shared utilities for implementing different interpretable models.
'''
Sub-modules
imodels.util.apply-
Map samples to the leaves they land in, like sklearn's
tree.apply. imodels.util.argumentsimodels.util.automlimodels.util.checksimodels.util.convertimodels.util.data_utilimodels.util.distillationimodels.util.ensembleimodels.util.explain_errorsimodels.util.extractimodels.util.get_rules-
Extract the rules of a fitted model as a pandas DataFrame …
imodels.util.metricsimodels.util.model_trees-
Find the scikit-learn trees behind a fitted imodels model …
imodels.util.neural_nets-
Bridging random forests and deep neural networks. Code to convert a sklearn decision tree to a pytorch neural network following "Neural Random …
imodels.util.pruneimodels.util.ruleimodels.util.scoreimodels.util.sklearn_compat-
Thin wrappers over private sklearn helpers whose signatures change between versions.
imodels.util.transforms-
Shared transforms between different interpretable models
imodels.util.treeimodels.util.tree_interaction_utilsimodels.util.tree_viz-
Plot imodels trees with dtreeviz …