dongjoon-hyun commented on code in PR #44179: URL: https://github.com/apache/spark/pull/44179#discussion_r1415952748
########## mllib/src/main/scala/org/apache/spark/mllib/tree/impurity/Entropy.scala: ########## @@ -112,7 +112,7 @@ private[spark] class EntropyAggregator(numClasses: Int) * @param offset Start index of stats for this (node, feature, bin). */ def getCalculator(allStats: Array[Double], offset: Int): EntropyCalculator = { - new EntropyCalculator(allStats.view.slice(offset, offset + statsSize - 1).toArray, + new EntropyCalculator(allStats.slice(offset, offset + statsSize - 1), Review Comment: This kind of simple replacements looks good definitely. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org