Uh oh!
There was an error while loading. Please reload this page.
[SPARK-17001] [ML] Enable standardScaler to standardize sparse vectors when withMean=True - #14663
[SPARK-17001] [ML] Enable standardScaler to standardize sparse vectors when withMean=True#14663srowen wants to merge 2 commits into
Conversation
SparkQA
commented
Aug 16, 2016
Test build #63840 has finished for PR 14663 at commit
|
srowen
commented
Aug 19, 2016
srowen
commented
Aug 22, 2016
going once, going twice. This would simply let an operation proceed where it errored before, at the cost of giving a user a little more rope to hang him/herself. I think it unblocks a legitimate and common set of use cases, so I think it's worth changing. |
MLnick
commented
Aug 22, 2016
As mentioned on the JIRA discussion, I'm neutral on this, though I tend to lean towards allowing the user to do what they want even if it might be "dangerous". I guess +0? Though perhaps we may want to explicitly log a |
srowen
commented
Aug 22, 2016
Warning seems reasonable. I think you'd have to put in a flag to remember if the user has been warned in order to avoid spewing millions of them. Worth it, you think? |
MLnick
commented
Aug 22, 2016
Ah right, good point. Actually I realised that the doc in ... as good a place as any to add a warning about using with sparse input (this can then show up in |
srowen
commented
Aug 23, 2016
If I understood you correctly @MLnick you favored just adding warnings in the doc? I added to three more places that needed it. |
SparkQA
commented
Aug 23, 2016
Test build #64288 has finished for PR 14663 at commit
|
srowen
commented
Aug 25, 2016
I'll go for this tomorrow if there are no other comments. |
srowen
commented
Aug 27, 2016
Merged to master |
… when withMean=True ## What changes were proposed in this pull request? Allow centering / mean scaling of sparse vectors in StandardScaler, if requested. This is for compatibility with `VectorAssembler` in common usages. ## How was this patch tested? Jenkins tests, including new caes to reflect the new behavior. Author: Sean Owen <sowen@cloudera.com> Closesapache#14663 from srowen/SPARK-17001.
What changes were proposed in this pull request?
Allow centering / mean scaling of sparse vectors in StandardScaler, if requested. This is for compatibility with
VectorAssemblerin common usages.How was this patch tested?
Jenkins tests, including new caes to reflect the new behavior.