Maciej Szymkiewicz created SPARK-38239: ------------------------------------------
Summary: AttributeError: 'LogisticRegressionModel' object has no attribute '_call_java' Key: SPARK-38239 URL: https://issues.apache.org/jira/browse/SPARK-38239 Project: Spark Issue Type: Bug Components: MLlib, PySpark Affects Versions: 3.2.0, 3.1.0, 3.0.0, 2.4.0, 3.3.0 Reporter: Maciej Szymkiewicz Trying to invoke {{\_\_repr\_\_}} on {{pyspark.mllib.classification.LogisticRegressionModel}} leads to {{AttributeError}}: {code:python} >>> 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' {code} This problem was introduced SPARK-14712, where the method was added, with the same implementation, for both {{ml}} and {{mllib}}. -- This message was sent by Atlassian Jira (v8.20.1#820001) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org