-
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-8531] [ML] Update ML user guide for MinMaxScaler #7211
Conversation
Test build #36492 has finished for PR 7211 at commit
|
Test build #39525 has finished for PR 7211 at commit
|
@@ -865,6 +865,7 @@ val scaledData = scalerModel.transform(dataFrame) | |||
{% highlight java %} | |||
import org.apache.spark.api.java.JavaRDD; | |||
import org.apache.spark.ml.feature.StandardScaler; | |||
import org.apache.spark.ml.feature.StandardScalerModel; |
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.
good catch!
Would you mind adding an example for Python too? Or we can make that a separate PR if you prefer. |
Test build #40741 has finished for PR 7211 at commit
|
@jkbradley Thanks for the review. |
The following example demonstrates how to load a dataset in libsvm format and then rescale each feature to [0, 1]. | ||
|
||
<div class="codetabs"> | ||
<div data-lang="scala"> |
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.
The links are not generated correctly, but you can fix it by modifying this line:
<div data-lang="scala" markdown="1">
The latex part looks much better now. |
ping! |
Sorry for the delay. I am in my hometown and has poor internet connection. I'll be back to office tomorrow and start catching up. |
Test build #41489 has finished for PR 7211 at commit
|
Thank you for updating it. LGTM. |
jira: https://issues.apache.org/jira/browse/SPARK-8531 Update ML user guide for MinMaxScaler Author: Yuhao Yang <hhbyyh@gmail.com> Author: unknown <yuhaoyan@yuhaoyan-MOBL1.ccr.corp.intel.com> Closes #7211 from hhbyyh/minmaxdoc. (cherry picked from commit b37f0cc) Signed-off-by: Joseph K. Bradley <joseph@databricks.com>
jira: https://issues.apache.org/jira/browse/SPARK-8531
Update ML user guide for MinMaxScaler