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-11629] [ML] [PySpark] [Doc] Python example code for Multilayer Perceptron Classification #9594

Closed
wants to merge 2 commits into from

Conversation

yanboliang
Copy link
Contributor

Add Python example code for Multilayer Perceptron Classification, and make example code in user guide document testable. @mengxr

@SparkQA
Copy link

SparkQA commented Nov 10, 2015

Test build #45514 has finished for PR 9594 at commit 033f35c.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds the following public classes (experimental):\n * public class JavaMultilayerPerceptronClassifierExample\n

// $example on$
// Load training data
String path = "data/mllib/sample_multiclass_classification_data.txt";
JavaRDD<LabeledPoint> data = MLUtils.loadLibSVMFile(jsc.sc(), path).toJavaRDD();
Copy link
Contributor

Choose a reason for hiding this comment

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

Not part of this PR, but we should replace MLUtils.loadLibSVMFile by sqlContext.read.format("libsvm").load(...). Could you submit another PR after this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good point, I will send a PR.

asfgit pushed a commit that referenced this pull request Nov 13, 2015
…rceptron Classification

Add Python example code for Multilayer Perceptron Classification, and make example code in user guide document testable. mengxr

Author: Yanbo Liang <ybliang8@gmail.com>

Closes #9594 from yanboliang/spark-11629.

(cherry picked from commit ea5ae27)
Signed-off-by: Xiangrui Meng <meng@databricks.com>
@asfgit asfgit closed this in ea5ae27 Nov 13, 2015
@mengxr
Copy link
Contributor

mengxr commented Nov 13, 2015

LGTM. Merged into master and branch-1.6. Thanks!

@yanboliang yanboliang deleted the spark-11629 branch November 13, 2015 06:04
dskrvk pushed a commit to dskrvk/spark that referenced this pull request Nov 13, 2015
…rceptron Classification

Add Python example code for Multilayer Perceptron Classification, and make example code in user guide document testable. mengxr

Author: Yanbo Liang <ybliang8@gmail.com>

Closes apache#9594 from yanboliang/spark-11629.
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.

3 participants