Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
3.1.1
-
None
Description
The documentation for Linear Regression in Pyspark includes an example, which contains a TypeError:
>>> abs(model.transform(test1).head().newPrediction - 1.0) < 0.001
True
>>> lr.setParams("vector")
Traceback (most recent call last):
...
TypeError: Method setParams forces keyword arguments.
I'm pretty sure we don't intend this, and it can be resolved by just changing the function call to use keyword args.
(HT Brooke Wenig for flagging this)