-
Notifications
You must be signed in to change notification settings - Fork 157
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
Label encoder for the case where y is 1-D. #18
Conversation
The label encoder that convert original labels into integers (0, 1, 2, ...)
Label encoder does not deal with partial mode yet.
Hi, thanks for the PR! Here are some of my thoughts on how to implement this feature request:
We can first focus on the training part, and add the prediction part latter. My biggest concern on your implementation is that it may not be a good idea to build everything from scratch. Instead, use mature tools from Scikit-Learn would be better. Feel free to ask me if you have any problem, or I did not deliver the meaning clearly. Let's cooperate with each other to complete this great feature ;-) |
@xuyxu Hi, I fully agree with your suggestion. |
Great, it looks much better now. I will have a careful look tomorrow ;-) Thanks! |
Hi @xuyxu I came up with a working branch. I have some thoughts about your suggestion:
|
Hi @NiMaZi, I have made some edits on your PR, mainly on the side of adding docstrings. Let me know if you are OK with them. In addition, here are some of my thoughts on your latest comment:
If you are OK with my modifications, here are things to do next to complete this PR:
|
Hi @xuyxu |
Never mind, I will take a look latter. Thanks 😄 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Merged. Thanks for your contributions! 👍 |
Resolved issue #13
This is a very naive label encoder implemented with
sklearn.preprocessing.LabelEncoder