Fixes #12 .
Fixed issue by changing the possible values of the FeatureOperation encoder attribute from EncodingFunctions.ONEHOT/ORDINAL class to EncodingFunctions.ONEHOT.value() instance.
Infact the encoder attribute is meant to store the actual instance of one of the classes listed in EncodingFunctions Enum.
Changed FeatureOperation __eq__ method accordingly.
Added a check in FeatureOperation constructor in order to validate the encoder argument.
Fixes #12 . Fixed issue by changing the possible values of the FeatureOperation
encoder
attribute fromEncodingFunctions.ONEHOT/ORDINAL
class toEncodingFunctions.ONEHOT.value()
instance. Infact theencoder
attribute is meant to store the actual instance of one of the classes listed in EncodingFunctions Enum. Changed FeatureOperation__eq__
method accordingly. Added a check in FeatureOperation constructor in order to validate theencoder
argument.