Details
Description
Trying to invoke __repr__ on pyspark.mllib.classification.LogisticRegressionModel leads to AttributeError:
>>> type(model) <class 'pyspark.mllib.classification.LogisticRegressionModel'> >>> model Traceback (most recent call last): File /path/to/python3.9/site-packages/IPython/core/formatters.py:698 in __call__ return repr(obj) File /path/to/spark/python/pyspark/mllib/classification.py:281 in __repr__ return self._call_java("toString") AttributeError: 'LogisticRegressionModel' object has no attribute '_call_java'
This problem was introduced SPARK-14712, where the method was added, with the same implementation, for both ml and mllib.