[ 
https://issues.apache.org/jira/browse/SPARK-38239?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17493919#comment-17493919
 ] 

Apache Spark commented on SPARK-38239:
--------------------------------------

User 'zero323' has created a pull request for this issue:
https://github.com/apache/spark/pull/35554

> 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
>            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-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to