File tree Expand file tree Collapse file tree 1 file changed +0
-26
lines changed
mllib/src/main/scala/org/apache/spark/mllib/classification Expand file tree Collapse file tree 1 file changed +0
-26
lines changed Original file line number Diff line number Diff 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-
You can’t perform that action at this time.
0 commit comments