Skip to content

Commit 3082686

Browse files
committed
fix setParent
1 parent a37e285 commit 3082686

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mllib/src/main/scala/org/apache/spark/ml/regression/GeneralizedLinearRegression.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ class GeneralizedLinearRegression @Since("2.0.0") (@Since("2.0.0") override val
211211
val irlsModel = optimizer.fit(instances)
212212

213213
val model = copyValues(new GeneralizedLinearRegressionModel(uid,
214-
irlsModel.coefficients, irlsModel.intercept))
214+
irlsModel.coefficients, irlsModel.intercept).setParent(this))
215215
model
216216
}
217217

0 commit comments

Comments
 (0)