[
https://issues.apache.org/jira/browse/SPARK-39113?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17532688#comment-17532688
]
Apache Spark commented on SPARK-39113:
--------------------------------------
User 'bjornjorgensen' has created a pull request for this issue:
https://github.com/apache/spark/pull/36465
> rename self to cls in python/pyspark/mllib/clustering.py
> --------------------------------------------------------
>
> Key: SPARK-39113
> URL: https://issues.apache.org/jira/browse/SPARK-39113
> Project: Spark
> Issue Type: Improvement
> Components: PySpark
> Affects Versions: 3.4.0
> Reporter: Bjørn Jørgensen
> Priority: Major
>
> Function def train(self....) is decorated as a @classmethod
> Python class function use cls insted of self.
--
This message was sent by Atlassian Jira
(v8.20.7#820007)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]