Github user yanboliang commented on a diff in the pull request:

    https://github.com/apache/spark/pull/15746#discussion_r86758888
  
    --- Diff: R/pkg/R/mllib.R ---
    @@ -1828,13 +1849,13 @@ setMethod("summary", signature(object = 
"RandomForestRegressionModel"),
     #' @note summary(RandomForestClassificationModel) since 2.1.0
     setMethod("summary", signature(object = "RandomForestClassificationModel"),
               function(object) {
    -            ans <- summary.randomForest(object)
    +            ans <- summary.treeEnsemble(object)
                 class(ans) <- "summary.RandomForestClassificationModel"
                 ans
               })
     
     #  Prints the summary of Random Forest Regression Model
    -print.summary.randomForest <- function(x) {
    +print.summary.treeEnsemble <- function(x) {
    --- End diff --
    
    That's OK. I thought the output may be very large which will flood the 
screen. The output of ```toDebugString``` is also not very legible compared 
with ```rpart```. I like the idea to make summary string consistent between 
languages. Let's get this in firstly and improve ```toDebugString``` at Scala 
side in a separate task which can also benefit SparkR.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

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

Reply via email to