[scikit-learn] Issue with DecisionTreeClassifier

Nelson Liu nfliu at uw.edu
Sun Aug 28 15:23:59 EDT 2016


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 at python.org> wrote:

> Dear Developers,
>
> 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'
>
> Kindly help.
>
> Thanks
> _______________________________________________
> scikit-learn mailing list
> scikit-learn at python.org
> https://mail.python.org/mailman/listinfo/scikit-learn
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/scikit-learn/attachments/20160828/8033c132/attachment.html>


More information about the scikit-learn mailing list