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

[SPARK-11108][ML] OneHotEncoder should support other numeric types #9777

Closed
wants to merge 5 commits into from

Conversation

sethah
Copy link
Contributor

@sethah sethah commented Nov 17, 2015

Adding support for other numeric types:

  • Integer
  • Short
  • Long
  • Float
  • Decimal

@SparkQA
Copy link

SparkQA commented Nov 17, 2015

Test build #46112 has finished for PR 9777 at commit 7a6fec1.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@SparkQA
Copy link

SparkQA commented Nov 18, 2015

Test build #46111 has finished for PR 9777 at commit 0fd4a91.

  • This patch passes all tests.
  • This patch does not merge cleanly.
  • This patch adds no public classes.

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.")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

values *in column

Copy link
Contributor Author

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".

@frreiss
Copy link
Contributor

frreiss commented Mar 8, 2016

LGTM aside from that one typo

@SparkQA
Copy link

SparkQA commented Mar 8, 2016

Test build #52675 has finished for PR 9777 at commit c60803e.

  • This patch fails Scala style tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@SparkQA
Copy link

SparkQA commented Mar 8, 2016

Test build #52680 has finished for PR 9777 at commit 1a486f8.

  • This patch fails Spark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@SparkQA
Copy link

SparkQA commented Mar 8, 2016

Test build #52684 has finished for PR 9777 at commit 1c9b9cd.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@MLnick
Copy link
Contributor

MLnick commented Mar 10, 2016

LGTM merged into master. Thanks!

@asfgit asfgit closed this in 9fe38ab Mar 10, 2016
roygao94 pushed a commit to roygao94/spark that referenced this pull request Mar 22, 2016
Adding support for other numeric types:

* Integer
* Short
* Long
* Float
* Decimal

Author: sethah <seth.hendrickson16@gmail.com>

Closes apache#9777 from sethah/SPARK-11108.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants