diff options
author | Ram Sriharsha <rsriharsha@hw11853.local> | 2015-05-29 15:22:26 -0700 |
---|---|---|
committer | Joseph K. Bradley <joseph@databricks.com> | 2015-05-29 15:22:26 -0700 |
commit | dbf8ff38de0f95f467b874a5b527dcf59439efe8 (patch) | |
tree | af580fb9fffa5f339d7470b2fe47b783335a999e /examples/src/main/scala | |
parent | 5fb97dca9bcfc29ac33823554c8783997e811b99 (diff) | |
download | spark-dbf8ff38de0f95f467b874a5b527dcf59439efe8.tar.gz spark-dbf8ff38de0f95f467b874a5b527dcf59439efe8.tar.bz2 spark-dbf8ff38de0f95f467b874a5b527dcf59439efe8.zip |
[SPARK-6013] [ML] Add more Python ML examples for spark.ml
Author: Ram Sriharsha <rsriharsha@hw11853.local>
Closes #6443 from harsha2010/SPARK-6013 and squashes the following commits:
732506e [Ram Sriharsha] Code Review Feedback
121c211 [Ram Sriharsha] python style fix
5f9b8c3 [Ram Sriharsha] python style fixes
925ca86 [Ram Sriharsha] Simple Params Example
8b372b1 [Ram Sriharsha] GBT Example
965ec14 [Ram Sriharsha] Random Forest Example
Diffstat (limited to 'examples/src/main/scala')
-rw-r--r-- | examples/src/main/scala/org/apache/spark/examples/ml/SimpleParamsExample.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/src/main/scala/org/apache/spark/examples/ml/SimpleParamsExample.scala b/examples/src/main/scala/org/apache/spark/examples/ml/SimpleParamsExample.scala index e8a991f50e..a0561e2573 100644 --- a/examples/src/main/scala/org/apache/spark/examples/ml/SimpleParamsExample.scala +++ b/examples/src/main/scala/org/apache/spark/examples/ml/SimpleParamsExample.scala @@ -87,7 +87,7 @@ object SimpleParamsExample { LabeledPoint(1.0, Vectors.dense(0.0, 2.2, -1.5)))) // Make predictions on test data using the Transformer.transform() method. - // LogisticRegression.transform will only use the 'features' column. + // LogisticRegressionModel.transform will only use the 'features' column. // Note that model2.transform() outputs a 'myProbability' column instead of the usual // 'probability' column since we renamed the lr.probabilityCol parameter previously. model2.transform(test.toDF()) |