Skip to content

Commit

Permalink
add another case _ back in test
Browse files Browse the repository at this point in the history
  • Loading branch information
mengxr committed May 21, 2015
1 parent ae5c66a commit f38b662
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ object NaiveBayesSuite {
case (index, reps) => (index, reps.size.toDouble)
}
counts.toArray.sortBy(_._1).map(_._2)
case _ =>
// This should never happen.
throw new UnknownError(s"Invalid modelType: $modelType.")
}

LabeledPoint(y, Vectors.dense(xi))
Expand Down

0 comments on commit f38b662

Please sign in to comment.