Skip to content

Commit

Permalink
Max/min nodes per group statistics don't make sense if
Browse files Browse the repository at this point in the history
no groups of nodes are procesed; updated log statements to reflect this
  • Loading branch information
mlflow-automation committed Jun 24, 2016
1 parent bd7d24d commit f5a6893
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -213,9 +213,9 @@ private[spark] object RandomForest extends Logging {

// Print out runtime statistics
logInfo(s"Processed $numGroups groups of nodes")
logInfo(s"Max nodes per group: $maxNodesPerGroup")
logInfo(s"Min nodes per group: $minNodesPerGroup")
if (numGroups > 0) {
logInfo(s"Max nodes per group: $maxNodesPerGroup")
logInfo(s"Min nodes per group: $minNodesPerGroup")
logInfo(s"Average nodes per group: ${totalNodesProcessed / numGroups.toDouble}")
}

Expand Down

0 comments on commit f5a6893

Please sign in to comment.