We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 35aa966 commit 97d465cCopy full SHA for 97d465c
python/pyspark/ml/regression.py
@@ -283,11 +283,11 @@ class LinearRegression(
283
>>> model_path = temp_path + "/lr_model"
284
>>> model.save(model_path)
285
>>> model2 = LinearRegressionModel.load(model_path)
286
- >>> model.coefficients[0] == model2.coefficients[0]
+ >>> bool(model.coefficients[0] == model2.coefficients[0])
287
True
288
- >>> model.intercept == model2.intercept
+ >>> bool(model.intercept == model2.intercept)
289
290
- >>> model.transform(test0).take(1) == model2.transform(test0).take(1)
+ >>> bool(model.transform(test0).take(1) == model2.transform(test0).take(1))
291
292
>>> model.numFeatures
293
1
0 commit comments