A synthetic dataset can be found at data/mllib/sample_linear_regression_data.txt.
If you use it as a template to create your own app, please use spark-submit to submit your app.
Annotations
@deprecated
Deprecated
(Since version 2.0.0) Use ml.regression.LinearRegression or LBFGS
Linear Supertypes
AnyRef, Any
Ordering
Alphabetic
By Inheritance
Inherited
LinearRegression
AnyRef
Any
Hide All
Show All
Visibility
Public
All
Type Members
case classParams(input: String = null, numIterations: Int = 100, stepSize: Double = 1.0, regType: RegType = L2, regParam: Double = 0.01) extends AbstractParams[Params] with Product with Serializable
An example app for linear regression. Run with
A synthetic dataset can be found at
data/mllib/sample_linear_regression_data.txt
. If you use it as a template to create your own app, please usespark-submit
to submit your app.(Since version 2.0.0) Use ml.regression.LinearRegression or LBFGS