zhengruifeng commented on a change in pull request #26489:
[SPARK-29867][ML][PYTHON] Add __repr__ in Python ML Models
URL: https://github.com/apache/spark/pull/26489#discussion_r346175077
##########
File path: python/pyspark/ml/classification.py
##########
@@ -356,6 +356,9 @@ def intercept(self):
"""
return self._call_java("intercept")
+ def __repr__(self):
Review comment:
Can we put this method to some common class (like `JavaModel`) and add
`__repr__` only in classes not extending `JavaModel` ?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]