Why not use the save method from the RandomForestModel class to save a model at 
a specified path?



Mohammed

Author: Big Data Analytics with Spark





-----Original Message-----
From: jluan [mailto:[email protected]]
Sent: Wednesday, February 10, 2016 5:57 PM
To: [email protected]
Subject: [MLLIB] Best way to extract RandomForest decision splits



I've trained a RandomForest classifier where I can print my model's decisions

using model.toDebugString



However I was wondering if there's a way to extract tree programmatically by

traversing the nodes or in some other way such that I can write my own

decision file rather than just a debug string.







--

View this message in context: 
http://apache-spark-user-list.1001560.n3.nabble.com/MLLIB-Best-way-to-extract-RandomForest-decision-splits-tp26201.html

Sent from the Apache Spark User List mailing list archive at Nabble.com.



---------------------------------------------------------------------

To unsubscribe, e-mail: 
[email protected]<mailto:[email protected]>

For additional commands, e-mail: 
[email protected]<mailto:[email protected]>


Reply via email to