@@ -247,7 +247,7 @@ val modelL1 = svmAlg.run(training)
247247All of MLlib's methods use Java-friendly types, so you can import and call them there the same
248248way you do in Scala. The only caveat is that the methods take Scala RDD objects, while the
249249Spark Java API uses a separate ` JavaRDD ` class. You can convert a Java RDD to a Scala one by
250- calling ` .rdd() ` on your ` JavaRDD ` object. A standalone application example
250+ calling ` .rdd() ` on your ` JavaRDD ` object. A self-contained application example
251251that is equivalent to the provided example in Scala is given bellow:
252252
253253{% highlight java %}
@@ -323,9 +323,9 @@ svmAlg.optimizer()
323323final SVMModel modelL1 = svmAlg.run(training.rdd());
324324{% endhighlight %}
325325
326- In order to run the above standalone application, follow the instructions
327- provided in the [ Standalone
328- Applications] ( quick-start.html#standalone -applications ) section of the Spark
326+ In order to run the above application, follow the instructions
327+ provided in the [ Self-Contained
328+ Applications] ( quick-start.html#self-contained -applications ) section of the Spark
329329quick-start guide. Be sure to also include * spark-mllib* to your build file as
330330a dependency.
331331</div >
@@ -482,12 +482,6 @@ public class LinearRegression {
482482 }
483483}
484484{% endhighlight %}
485-
486- In order to run the above standalone application, follow the instructions
487- provided in the [ Standalone
488- Applications] ( quick-start.html#standalone-applications ) section of the Spark
489- quick-start guide. Be sure to also include * spark-mllib* to your build file as
490- a dependency.
491485</div >
492486
493487<div data-lang =" python " markdown =" 1 " >
@@ -519,6 +513,12 @@ print("Mean Squared Error = " + str(MSE))
519513</div >
520514</div >
521515
516+ In order to run the above application, follow the instructions
517+ provided in the [ Self-Contained Applications] ( quick-start.html#self-contained-applications )
518+ section of the Spark
519+ quick-start guide. Be sure to also include * spark-mllib* to your build file as
520+ a dependency.
521+
522522## Streaming linear regression
523523
524524When data arrive in a streaming fashion, it is useful to fit regression models online,
0 commit comments