-
Notifications
You must be signed in to change notification settings - Fork 28.1k
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
[SPARK-11108][ML] OneHotEncoder should support other numeric types #9777
Conversation
Test build #46112 has finished for PR 9777 at commit
|
Test build #46111 has finished for PR 9777 at commit
|
assert(x <= Int.MaxValue, | ||
s"OneHotEncoder only supports up to ${Int.MaxValue} indices, but got $x") | ||
assert(x >= 0.0 && x == x.toInt, | ||
s"Values e column $inputColName must be indices, but got $x.") |
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.
values *in column
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.
I reverted this back to the original wording, "Values from column".
LGTM aside from that one typo |
Test build #52675 has finished for PR 9777 at commit
|
Test build #52680 has finished for PR 9777 at commit
|
Test build #52684 has finished for PR 9777 at commit
|
LGTM merged into master. Thanks! |
Adding support for other numeric types: * Integer * Short * Long * Float * Decimal Author: sethah <seth.hendrickson16@gmail.com> Closes apache#9777 from sethah/SPARK-11108.
Adding support for other numeric types: