Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
xinrong-meng committed Oct 7, 2024
1 parent 35aa966 commit 97d465c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python/pyspark/ml/regression.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,11 +283,11 @@ class LinearRegression(
>>> model_path = temp_path + "/lr_model"
>>> model.save(model_path)
>>> model2 = LinearRegressionModel.load(model_path)
>>> model.coefficients[0] == model2.coefficients[0]
>>> bool(model.coefficients[0] == model2.coefficients[0])
True
>>> model.intercept == model2.intercept
>>> bool(model.intercept == model2.intercept)
True
>>> model.transform(test0).take(1) == model2.transform(test0).take(1)
>>> bool(model.transform(test0).take(1) == model2.transform(test0).take(1))
True
>>> model.numFeatures
1
Expand Down

0 comments on commit 97d465c

Please sign in to comment.