Rex,
For extracting decision rules as a Pandas query, here is some sample code
with a test case that should work. No promises though.
```
import pandas as pd
from sklearn.datasets import load_iris
from sklearn import tree
import sklearn
def get_queries(clf, feature_names):
def recurse(node_i
.
More info: http://www.markirwin.net/stat220/Lecture/Lecture4.pdf
Also, statsmodels implements poisson loss and could be a good reference.
Brian Scannell
On Thu, Jul 30, 2015 at 11:12 AM Mathieu Blondel
wrote:
>
>
> On Thu, Jul 30, 2015 at 11:38 PM, Andreas Mueller
> wrote:
>