Re: [Scikit-learn-general] How to extract the decision tree rule of each leaf node into Pandas Dataframe query?

2015-08-27 Thread Brian Scannell
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

Re: [Scikit-learn-general] Possible code contribution (Poisson loss)

2015-07-30 Thread Brian Scannell
. 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: >