You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@spark.apache.org by jake Lim <it...@gmail.com> on 2014/12/08 06:17:34 UTC

Print Node info. of Decision Tree

How can i print Node info. of Decision Tree model? 
I want to navigate and print all information of Decision tree Model.
Is there some kind of function/method to support it? 



--
View this message in context: http://apache-spark-user-list.1001560.n3.nabble.com/Print-Node-info-of-Decision-Tree-tp20572.html
Sent from the Apache Spark User List mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@spark.apache.org
For additional commands, e-mail: user-help@spark.apache.org


Re: Print Node info. of Decision Tree

Posted by Manish Amde <ma...@gmail.com>.
Hi Jake,

The "toString" method should print the full model in versions 1.1.x.

The current master branch has a method "toDebugString" for
DecisionTreeModel which should print out all the node classes and the
"toString" method has been updated to print the summary only so there is a
slight change in the upcoming release 1.2.x.

-Manish

On Sun, Dec 7, 2014 at 9:17 PM, jake Lim <it...@gmail.com> wrote:

> How can i print Node info. of Decision Tree model?
> I want to navigate and print all information of Decision tree Model.
> Is there some kind of function/method to support it?
>
>
>
> --
> View this message in context:
> http://apache-spark-user-list.1001560.n3.nabble.com/Print-Node-info-of-Decision-Tree-tp20572.html
> Sent from the Apache Spark User List mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@spark.apache.org
> For additional commands, e-mail: user-help@spark.apache.org
>
>