There is a newer version of this record available.

Software Open Access

datascienceinc/Skater: Enable Interpretability via Rule Extraction(BRL)

Pramit Choudhary; Aaron Kramer; team

MARC21 XML Export

<?xml version='1.0' encoding='UTF-8'?>
<record xmlns="">
  <controlfield tag="005">20200125192128.0</controlfield>
  <controlfield tag="001">1198885</controlfield>
  <datafield tag="700" ind1=" " ind2=" ">
    <subfield code="a">Aaron Kramer</subfield>
  <datafield tag="700" ind1=" " ind2=" ">
    <subfield code="a"> team</subfield>
  <datafield tag="700" ind1=" " ind2=" ">
    <subfield code="4">oth</subfield>
    <subfield code="a">Ben Van Dyke</subfield>
  <datafield tag="700" ind1=" " ind2=" ">
    <subfield code="4">oth</subfield>
    <subfield code="a">alvinthai</subfield>
  <datafield tag="700" ind1=" " ind2=" ">
    <subfield code="4">oth</subfield>
    <subfield code="a">Dave Thompson</subfield>
  <datafield tag="856" ind1="4" ind2=" ">
    <subfield code="s">24290935</subfield>
    <subfield code="z">md5:c55cd7ca5a914124177d1f1be3097339</subfield>
    <subfield code="u"></subfield>
  <datafield tag="542" ind1=" " ind2=" ">
    <subfield code="l">open</subfield>
  <datafield tag="260" ind1=" " ind2=" ">
    <subfield code="c">2018-03-15</subfield>
  <datafield tag="909" ind1="C" ind2="O">
    <subfield code="p">software</subfield>
    <subfield code="o"></subfield>
  <datafield tag="100" ind1=" " ind2=" ">
    <subfield code="a">Pramit Choudhary</subfield>
  <datafield tag="245" ind1=" " ind2=" ">
    <subfield code="a">datascienceinc/Skater: Enable Interpretability via Rule Extraction(BRL)</subfield>
  <datafield tag="540" ind1=" " ind2=" ">
    <subfield code="u"></subfield>
    <subfield code="a">MIT License</subfield>
  <datafield tag="650" ind1="1" ind2="7">
    <subfield code="a">cc-by</subfield>
    <subfield code="2"></subfield>
  <datafield tag="520" ind1=" " ind2=" ">
    <subfield code="a">&lt;ol&gt;
	&lt;p&gt;Skater till now has been an interpretation engine to enable post-hoc model evaluation and interpretation. With this PR Skater starts its journey to support interpretable models. Rule List algorithms are highly popular in the space of Interpretable Models because the trained models are represented as simple decision lists. In the latest release, we enable support for Bayesian Rule Lists(BRL). The probabilistic classifier( estimating P(Y=1|X) for each X ) optimizes the posterior of a Bayesian hierarchical model over the pre-mined rules.&lt;/p&gt;

	&lt;p&gt;Usage Example:&lt;/p&gt;

	&lt;pre&gt;&lt;code&gt; from skater.core.global_interpretation.interpretable_models.brlc import BRLC
 import pandas as pd
 from sklearn.datasets.mldata import fetch_mldata
 input_df = fetch_mldata("diabetes")
 Xtrain, Xtest, ytrain, ytest = train_test_split(input_df, y, test_size=0.20, random_state=0)

 sbrl_model = BRLC(min_rule_len=1, max_rule_len=10, iterations=10000, n_chains=20, drop_features=True)
 # Train a model, by default discretizer is enabled. So, you wish to exclude features then exclude them using
 # the undiscretize_feature_list parameter
 model =, ytrain, bin_labels="default")
	&lt;li&gt;Other minor bug fixes and documentation update&lt;/li&gt;
  <datafield tag="773" ind1=" " ind2=" ">
    <subfield code="n">url</subfield>
    <subfield code="i">isSupplementTo</subfield>
    <subfield code="a"></subfield>
  <datafield tag="773" ind1=" " ind2=" ">
    <subfield code="n">doi</subfield>
    <subfield code="i">isVersionOf</subfield>
    <subfield code="a">10.5281/zenodo.1198884</subfield>
  <datafield tag="024" ind1=" " ind2=" ">
    <subfield code="a">10.5281/zenodo.1198885</subfield>
    <subfield code="2">doi</subfield>
  <datafield tag="980" ind1=" " ind2=" ">
    <subfield code="a">software</subfield>
All versions This version
Views 642433
Downloads 6521
Data volume 9.1 GB510.1 MB
Unique views 537383
Unique downloads 3413


Cite as