Skip to content

Commit

Permalink
removed old code
Browse files Browse the repository at this point in the history
  • Loading branch information
jkbradley committed Mar 22, 2015
1 parent 6a8f383 commit 9ad89ca
Showing 1 changed file with 0 additions and 26 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -446,30 +446,4 @@ object NaiveBayes {
/** Java-friendly accessor for supported ModelType options */
final val modelTypes = ModelType

/*
object MODELTYPE extends Serializable{
final val MULTINOMIAL_STRING = "multinomial"
final val BERNOULLI_STRING = "bernoulli"
def fromString(modelType: String): ModelType = modelType match {
case MULTINOMIAL_STRING => Multinomial
case BERNOULLI_STRING => Bernoulli
case _ =>
throw new IllegalArgumentException(s"Cannot recognize NaiveBayes ModelType: $modelType")
}
}
final val ModelType = MODELTYPE
/** Constant for specifying ModelType parameter: multinomial model */
final val Multinomial: ModelType = new ModelType {
override def toString: String = ModelType.MULTINOMIAL_STRING
}
/** Constant for specifying ModelType parameter: bernoulli model */
final val Bernoulli: ModelType = new ModelType {
override def toString: String = ModelType.BERNOULLI_STRING
}
*/
}

0 comments on commit 9ad89ca

Please sign in to comment.