huaxingao commented on issue #26370: [SPARK-29727][ML][PYTHON] Use 
UnaryTransformer as parent class for single input column transformers in PySpark
URL: https://github.com/apache/spark/pull/26370#issuecomment-549617356
 
 
   I will change the three methods to no-op as following in all the subclasses 
because it's no need to implement them in python side, but I have to implement 
to make 2.7 work, otherwise, 2.7 throws Exception ```TypeError: Can't 
instantiate abstract class DCT with abstract methods createTransformFunc, 
outputDataType, validateInputType```
   ```
       def _createTransformFunc(self):
           pass
   
       def _outputDataType(self):
           pass
   
       def _validateInputType(self, inputType):
           pass
   ```

----------------------------------------------------------------
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]

Reply via email to