Hi,
ThanksHi,Is there a way to extract impurity value of a node in DecisionTreeClassifier? I am able to get this value in graph (using export_grapgviz), but can't figure out how to get this value in my code. Is there any attribute similar to estimator.tree_.children_left?_______________________________________________On Mon, Aug 29, 2016 at 12:53 AM, Nelson Liu <nfliu@uw.edu> wrote:That should be:node indicator = estimator.tree_.decision_path(X_test)PR welcome :)On Sun, Aug 28, 2016, 13:12 Ibrahim Dalal via scikit-learn <scikit-learn@python.org> wrote:_______________________________________________ThanksDear Developers,Kindly help.
DecisionTreeClassifier.decision_path() as used here http://scikit-learn.org/dev/auto_examples/tree/unveil_tree_structure.html is giving the following error:
AttributeError: 'DecisionTreeClassifier' object has no attribute 'decision_path'
scikit-learn mailing list
scikit-learn@python.org
https://mail.python.org/mailman/listinfo/scikit-learn
_______________________________________________
scikit-learn mailing list
scikit-learn@python.org
https://mail.python.org/mailman/listinfo/scikit-learn
scikit-learn mailing list
scikit-learn@python.org
https://mail.python.org/mailman/listinfo/scikit-learn