Skip to content

Commit 9ad89ca

Browse files
committed
removed old code
1 parent 6a8f383 commit 9ad89ca

File tree

1 file changed

+0
-26
lines changed

1 file changed

+0
-26
lines changed

mllib/src/main/scala/org/apache/spark/mllib/classification/NaiveBayes.scala

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -446,30 +446,4 @@ object NaiveBayes {
446446
/** Java-friendly accessor for supported ModelType options */
447447
final val modelTypes = ModelType
448448

449-
/*
450-
object MODELTYPE extends Serializable{
451-
final val MULTINOMIAL_STRING = "multinomial"
452-
final val BERNOULLI_STRING = "bernoulli"
453-
454-
def fromString(modelType: String): ModelType = modelType match {
455-
case MULTINOMIAL_STRING => Multinomial
456-
case BERNOULLI_STRING => Bernoulli
457-
case _ =>
458-
throw new IllegalArgumentException(s"Cannot recognize NaiveBayes ModelType: $modelType")
459-
}
460-
}
461-
462-
final val ModelType = MODELTYPE
463-
464-
/** Constant for specifying ModelType parameter: multinomial model */
465-
final val Multinomial: ModelType = new ModelType {
466-
override def toString: String = ModelType.MULTINOMIAL_STRING
467-
}
468-
469-
/** Constant for specifying ModelType parameter: bernoulli model */
470-
final val Bernoulli: ModelType = new ModelType {
471-
override def toString: String = ModelType.BERNOULLI_STRING
472-
}
473-
*/
474449
}
475-

0 commit comments

Comments
 (0)