Skip to content

Commit

Permalink
add basic setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
csinva committed Jul 18, 2019
1 parent df31faa commit 1ac2cd3
Show file tree
Hide file tree
Showing 32 changed files with 19 additions and 7 deletions.
10 changes: 10 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,13 @@ env
**.idea
*.pth
**Icon*
# Compiled python modules.
*.pyc

# Setuptools distribution folder.
/dist/

# Python egg metadata, regenerated from source files by setuptools.
/*.egg-info

build
3 changes: 3 additions & 0 deletions imodels/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from . import bayesian_rule_lists
from . import slim
from . import optimal_classification_tree
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 0 additions & 1 deletion models/rulefit
Submodule rulefit deleted from 3a2962
File renamed without changes.
File renamed without changes.
File renamed without changes.
10 changes: 5 additions & 5 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,18 @@ Code for implementations of interpretable machine learning models and demos of h


### Code implementations
Provides scikit-learn style implementations of different interpretable models (see readmes in individual folders within [models](models) for details)
Provides scikit-learn style wrappers/implementations of different interpretable models (see readmes in individual folders within [models](models) for details)

- [bayesian rule lists](https://arxiv.org/abs/1602.08610)
- [optimal classification tree](https://link.springer.com/article/10.1007/s10994-017-5633-9)
- sparse integer linear models (simple, unstable implementation)

### Demo notebooks
The demos are contained in 3 main notebooks, summarized in [cheat_sheet.pdf](cheat_sheet.pdf)
The demos are contained in 3 main [notebooks](notebooks), summarized in [cheat_sheet.pdf](cheat_sheet.pdf)

1. [model_based.ipynb](model_based.ipynb) - how to use different interpretable models
2. [posthoc.ipynb](posthoc.ipynb) - different simple analyses to interpret a trained model
3. [uncertainty.ipynb](uncertainty.ipynb) - code to get uncertainty estimates for a model
1. [model_based.ipynb](notebooks/model_based.ipynb) - how to use different interpretable models
2. [posthoc.ipynb](notebooks/posthoc.ipynb) - different simple analyses to interpret a trained model
3. [uncertainty.ipynb](notebooks/uncertainty.ipynb) - code to get uncertainty estimates for a model


### References / further reading
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
long_description = fh.read()

setuptools.setup(
name="interpretable_models",
name="imodels",
version="0.0.1",
author="Chandan Singh",
author_email="[email protected]",
Expand Down

0 comments on commit 1ac2cd3

Please sign in to comment.