2013/12/3 Caleb <cloverev...@yahoo.com>: > Hi everyone, > > Says I have trained a decision tree classifier. And I want to know, for each > node, what is the the feature that is used to split the tree, and what is > the boundary value. How can I approach this problem. > > I notice that the tree object has a export_graphviz method, which export the > dot file which contains all the information I want. But instead of parsing > the dot file, is there a more direct way to get what I want?
This is a common user request. There is a pull request here for that here: https://github.com/scikit-learn/scikit-learn/pull/2530 -- Olivier ------------------------------------------------------------------------------ Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk _______________________________________________ Scikit-learn-general mailing list Scikit-learn-general@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/scikit-learn-general