Skip to content

Commit

Permalink
BUG: fix for loading exception
Browse files Browse the repository at this point in the history
  • Loading branch information
facaiy committed Mar 25, 2017
1 parent b554fce commit 80f3306
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ private[spark] object ImpurityCalculator {
* the given stats.
*/
def getCalculator(impurity: String, stats: Array[Double]): ImpurityCalculator = {
impurity match {
impurity.toLowerCase match {
case "gini" => new GiniCalculator(stats)
case "entropy" => new EntropyCalculator(stats)
case "variance" => new VarianceCalculator(stats)
Expand Down

0 comments on commit 80f3306

Please sign in to comment.