Skip to content
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

Ladder Encoder Patch #34

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

SomeoneInParticular
Copy link
Collaborator

Accounts for an edge case which occurs when the np.cumsum trick results in the final column being homogenous. The encoder now detects this, and corrects it by dropping the first available feature in the ordered list provided by the user (making it act as the "starting" class instead).

…in the users feature order) in the ladder of a ladder encoding was being treated as being the first instead
@SomeoneInParticular
Copy link
Collaborator Author

@valosekj this was the edge case I was talking about; this patch should correct it. Feel free to give it a spin if you want, but I have tested it myself, and if you find no issues with it, it should be good to merge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant