[ 
https://issues.apache.org/jira/browse/SPARK-19282?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15830962#comment-15830962
 ] 

Nick Lothian commented on SPARK-19282:
--------------------------------------

The docs say it is available in Java and Scala.

In Java: 
https://spark.apache.org/docs/2.1.0/api/java/org/apache/spark/ml/regression/RandomForestRegressionModel.html#getMaxDepth()

In Scala: 
https://spark.apache.org/docs/2.1.0/api/scala/index.html#org.apache.spark.ml.regression.RandomForestRegressionModel@maxDepth:org.apache.spark.ml.param.IntParam

I don't know how to find the RandomForestRegressionModel in the R docs. R does 
take the parameter, but it is unclear if it exposes it on the model. 


> RandomForestRegressionModel should expose getMaxDepth
> -----------------------------------------------------
>
>                 Key: SPARK-19282
>                 URL: https://issues.apache.org/jira/browse/SPARK-19282
>             Project: Spark
>          Issue Type: Improvement
>          Components: ML
>    Affects Versions: 2.1.0
>            Reporter: Nick Lothian
>            Priority: Minor
>
> Currently it isn't clear hot to get the max depth of a 
> RandomForestRegressionModel (eg, after doing a grid search)
> It is possible to call
> {{regressor._java_obj.getMaxDepth()}} 
> but most other decision trees allow
> {{regressor.getMaxDepth()}} 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to