Github user facaiy commented on a diff in the pull request: https://github.com/apache/spark/pull/17383#discussion_r108318833 --- Diff: mllib/src/main/scala/org/apache/spark/ml/tree/Node.scala --- @@ -301,7 +302,7 @@ private[tree] class LearningNode( * group of nodes on one call to * [[org.apache.spark.ml.tree.impl.RandomForest.findBestSplits()]]. */ - def predictImpl(binnedFeatures: Array[Int], splits: Array[Array[Split]]): Int = { + def predictImpl(binnedFeatures: Int => Int, splits: Array[Array[Split]]): Int = { --- End diff -- when use `breeze.linalg.SparseVector`, compile fails: ```scala java.lang.AssertionError: assertion failed: List(method apply$mcI$sp, method apply$mcI$sp) at scala.reflect.internal.Symbols$Symbol.suchThat(Symbols.scala:1947) at scala.tools.nsc.transform.SpecializeTypes$$anon$2.matchingSymbolInPrefix$1(SpecializeTypes.scala:1474) at scala.tools.nsc.transform.SpecializeTypes$$anon$2.transformSelect$1(SpecializeTypes.scala:1497) at scala.tools.nsc.transform.SpecializeTypes$$anon$2.transform1(SpecializeTypes.scala:1593) at scala.tools.nsc.transform.SpecializeTypes$$anon$2$$anonfun$transform$3.apply(SpecializeTypes.scala:1442) ...... ``` I don't know why? Can anyone help? Thanks.
--- 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 infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org