org.apache.spark.examples.ml
An example runner for linear regression with elastic-net (mixing L1/L2) regularization. Run with
bin/run-example ml.LinearRegressionExample [options]
A synthetic dataset can be found at data/mllib/sample_linear_regression_data.txt which can be trained by
data/mllib/sample_linear_regression_data.txt
bin/run-example ml.LinearRegressionExample --regParam 0.15 --elasticNetParam 1.0 \ 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.
spark-submit
An example runner for linear regression with elastic-net (mixing L1/L2) regularization. Run with
A synthetic dataset can be found at
data/mllib/sample_linear_regression_data.txt
which can be trained byIf you use it as a template to create your own app, please use
spark-submit
to submit your app.