Skip to content

Commit ab05aa6

Browse files
Allow users to set initial model in logistic regression
1 parent e42724b commit ab05aa6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mllib/src/main/scala/org/apache/spark/ml/classification/LogisticRegression.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ class LogisticRegression @Since("1.2.0") (
250250
private var optInitialModel: Option[LogisticRegressionModel] = None
251251

252252
/** @group setParam */
253-
private[spark] def setInitialModel(model: LogisticRegressionModel): this.type = {
253+
def setInitialModel(model: LogisticRegressionModel): this.type = {
254254
this.optInitialModel = Some(model)
255255
this
256256
}

0 commit comments

Comments
 (0)