Skip to content

Commit 18f3219

Browse files
committed
removed private from naive bayes constructor for lambda only
1 parent bea62af commit 18f3219

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ class NaiveBayes private (
186186
private var lambda: Double,
187187
private var modelType: NaiveBayes.ModelType) extends Serializable with Logging {
188188

189-
private def this(lambda: Double) = this(lambda, NaiveBayes.Multinomial)
189+
def this(lambda: Double) = this(lambda, NaiveBayes.Multinomial)
190190

191191
def this() = this(1.0, NaiveBayes.Multinomial)
192192

0 commit comments

Comments
 (0)