tmadl / sklearn-expertsys

Highly interpretable classifiers for scikit learn, producing easily understood decision rules instead of black box models
489 stars 72 forks source link

Only support python2? #4

Open fayeshine opened 8 years ago

fayeshine commented 8 years ago

please consider add support for python3, besides, can you provide a installation program, like pip install?

csinva commented 5 years ago

Hello, for anyone still interested, I've made a python3 port of this code here which is now pip-installable:

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

from imodels import RuleListClassifier
model = RuleListClassifier()
model.fit(X_train, y_train)
model.score(X_test, y_test)
preds = model.predict(X_test)