zero323 commented on a change in pull request #35289:
URL: https://github.com/apache/spark/pull/35289#discussion_r790272770
##########
File path: python/pyspark/ml/classification.pyi
##########
@@ -820,6 +820,7 @@ class OneVsRest(
weightCol: Optional[str] = ...,
parallelism: int = ...,
) -> OneVsRest: ...
+ def _fit(self, dataset: DataFrame) -> OneVsRestModel: ...
Review comment:
This is added to suppress abstract method warnings.
##########
File path: python/pyspark/ml/classification.pyi
##########
@@ -832,6 +833,7 @@ class OneVsRest(
class OneVsRestModel(Model, _OneVsRestParams, MLReadable[OneVsRestModel],
MLWritable):
models: List[Transformer]
def __init__(self, models: List[Transformer]) -> None: ...
+ def _transform(self, dataset: DataFrame) -> DataFrame: ...
Review comment:
Ditto.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]