zero323 commented on a change in pull request #26232: [SPARK-29093][PYTHON][ML]
Remove automatically generated param setters in _shared_params_code_gen.py
URL: https://github.com/apache/spark/pull/26232#discussion_r366360231
##########
File path: python/pyspark/ml/feature.py
##########
@@ -707,6 +855,34 @@ class CountVectorizerModel(JavaModel,
_CountVectorizerParams, JavaMLReadable, Ja
.. versionadded:: 1.6.0
"""
+ @since("3.0.0")
+ def setInputCol(self, value):
+ """
+ Sets the value of :py:attr:`inputCol`.
+ """
+ return self._set(inputCol=value)
+
+ @since("3.0.0")
+ def setOutputCol(self, value):
+ """
+ Sets the value of :py:attr:`outputCol`.
+ """
+ return self._set(outputCol=value)
+
+ @since("3.0.0")
+ def setMinTF(self, value):
Review comment:
This one is already present in 2.4
([L916-L921](https://github.com/huaxingao/spark/blob/03c2e4a6c7581402de0c1067c31f5655d9992364/python/pyspark/ml/feature.py#L916-L921))
----------------------------------------------------------------
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]