org.apache.spark.examples.ml
An example runner for logistic regression with elastic-net (mixing L1/L2) regularization. Run with
bin/run-example ml.LogisticRegressionExample [options]
A synthetic dataset can be found at data/mllib/sample_libsvm_data.txt which can be trained by
data/mllib/sample_libsvm_data.txt
bin/run-example ml.LogisticRegressionExample --regParam 0.3 --elasticNetParam 0.8 \ data/mllib/sample_libsvm_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 logistic regression with elastic-net (mixing L1/L2) regularization. Run with
A synthetic dataset can be found at
data/mllib/sample_libsvm_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.