Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel
Integration:  git github
973f1b5f61
run tests on push with github
3 years ago
165cde902a
clean nb + update tests
3 years ago
dd4a2f7654
remove all unnecessary files
3 years ago
dd4a2f7654
remove all unnecessary files
3 years ago
37a93d7176
fix failing regr test
3 years ago
1f4e68fe20
add basic tests
3 years ago
df31faa008
add license
4 years ago
57a9bf2da1
Set theme jekyll-theme-cayman
3 years ago
dd4a2f7654
remove all unnecessary files
3 years ago
1f4e68fe20
add basic tests
3 years ago
Storage Buckets

readme.md

You have to be logged in to leave a comment. Sign In

Interpretable machine learning models (imodels) 🔍

Straightforward implementations of interpretable ML models + demos of how to use various interpretability techniques. Code is optimized for readability. Pull requests welcome!

Implementations of imodels Demo notebooksDocs

Implementations of interpretable models

Scikit-learn style wrappers/implementations of different interpretable models. Docs available here. The interpretable models within the imodels folder can be easily installed and used:

pip install git+https://github.com/csinva/interpretability-implementations-demos

from imodels import RuleListClassifier, RuleFit, GreedyRuleList, SkopeRules, SLIM, IRFClassifier
model = RuleListClassifier()  # initialize Bayesian Rule List
model.fit(X_train, y_train)   # fit model
preds = model.predict(X_test) # discrete predictions: shape is (n_test, 1)
preds_proba = model.predict_proba(X_test) # predicted probabilities: shape is (n_test, n_classes)

Demo notebooks

The demos are contained in 3 main notebooks, following this cheat-sheet:cheat_sheet

  1. model_based.ipynb - how to use different interpretable models and examples with the imodels package
  2. posthoc.ipynb - different simple analyses to interpret a trained model
  3. uncertainty.ipynb - code to get uncertainty estimates for a model

References / further reading

Tip!

Press p or to see the previous file or, n or to see the next file

About

Interpretable ML package 🔍 for concise, transparent, and accurate predictive modeling (sklearn-compatible).

Collaborators 1

Comments

Loading...