-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using Encoder.oneHot like scikit-learn LabelBinarizer #28
Comments
@CaptainDario Thank you for creating the issue! Indeed, there are too few words in the README about encoding, I'd recommend you to look at live example Although a different encoder is used there, the key idea is the same - encoders from this lib infer labels from the provided data on their own, that's why you need to provide data first (using DataFrame). I suppose, it would be a good idea to add the ability to provide labels directly to encoders, I'll consider this in future updates of the lib |
@CaptainDario And regarding the additional info in README - I got your point, It's really needed to add some words on encoding + I'll fix the link |
Thank you for your quick help. If I understand that right I need to create a dataframe with a feature containing all my values like this:
and than the created encoder will be able to convert new instances back to the label, right? |
Okay, I tried the above approach and it seems to be working. But does an encoder provide a method to reverse the oneHot encoding something like
And |
@CaptainDario thank you very much for such a precious feedback, I'll consider adding this functionality to the lib. Do you have any more problems with the package? |
Otherwise the package seems to be doing exactly what I want. Thank you! |
@CaptainDario I need to think it over, |
First of all thanks for this nice package! But sadly I am already stuck at the beginning.
I am trying to use the
Encoder.oneHot
like theLabelBinarizer
from scikit-learn. But I am not sure how to achieve that if it is even possible.What I want is basically this:
The Encoder.oneHot forces me to provide a
dataFrame
instance to the constructor. However from the README it is not clear to me how thatdataFrame
should look like (also could you please update the link to the black friday data set).Your help would be highly appreciated!
The text was updated successfully, but these errors were encountered: