-
- Downloads
[SPARK-5119] java.lang.ArrayIndexOutOfBoundsException on trying to train...
... decision tree model Labels loaded from libsvm files are mapped to 0.0 if they are negative labels because they should be nonnegative value. Author: lewuathe <lewuathe@me.com> Closes #3975 from Lewuathe/map-negative-label-to-positive and squashes the following commits: 12d1d59 [lewuathe] [SPARK-5119] Fix code styles 6d9a18a [lewuathe] [SPARK-5119] Organize test codes 62a150c [lewuathe] [SPARK-5119] Modify Impurities throw exceptions with negatie labels 3336c21 [lewuathe] [SPARK-5119] java.lang.ArrayIndexOutOfBoundsException on trying to train decision tree model
Showing
- mllib/src/main/scala/org/apache/spark/mllib/tree/impurity/Entropy.scala 5 additions, 0 deletions.../scala/org/apache/spark/mllib/tree/impurity/Entropy.scala
- mllib/src/main/scala/org/apache/spark/mllib/tree/impurity/Gini.scala 5 additions, 0 deletions...ain/scala/org/apache/spark/mllib/tree/impurity/Gini.scala
- mllib/src/test/scala/org/apache/spark/mllib/tree/ImpuritySuite.scala 42 additions, 0 deletions...est/scala/org/apache/spark/mllib/tree/ImpuritySuite.scala
Please register or sign in to comment