You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (Jira)" <ji...@apache.org> on 2022/02/17 12:53:00 UTC
[jira] [Assigned] (SPARK-38239) AttributeError: 'LogisticRegressionModel' object has no attribute '_call_java'
[ https://issues.apache.org/jira/browse/SPARK-38239?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Apache Spark reassigned SPARK-38239:
------------------------------------
Assignee: Apache Spark
> 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: 2.4.0, 3.0.0, 3.1.0, 3.2.0, 3.3.0
> Reporter: Maciej Szymkiewicz
> Assignee: Apache Spark
> Priority: Minor
>
> 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-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org