HK3-Lab-Team / pytrousse

PyTrousse collects into one toolbox a set of data wrangling procedures tailored for composing reproducible analytics pipelines.
Apache License 2.0
0 stars 1 forks source link

Fix issue #12 #13

Closed lorenz-gorini closed 4 years ago

lorenz-gorini commented 4 years ago

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.