diff options
author | Xiangrui Meng <meng@databricks.com> | 2014-04-29 00:41:03 -0700 |
---|---|---|
committer | Reynold Xin <rxin@apache.org> | 2014-04-29 00:41:15 -0700 |
commit | aa519e3199cbacf9d06aa123df41f65d57559080 (patch) | |
tree | 12ffbfdf799130f4c6c2c254823ac5deef23d800 /examples/pom.xml | |
parent | 0995787ac6c71b7786ec68e3ee6f572ad7bf56a3 (diff) | |
download | spark-aa519e3199cbacf9d06aa123df41f65d57559080.tar.gz spark-aa519e3199cbacf9d06aa123df41f65d57559080.tar.bz2 spark-aa519e3199cbacf9d06aa123df41f65d57559080.zip |
[SPARK-1636][MLLIB] Move main methods to examples
* `NaiveBayes` -> `SparseNaiveBayes`
* `KMeans` -> `DenseKMeans`
* `SVMWithSGD` and `LogisticRegerssionWithSGD` -> `BinaryClassification`
* `ALS` -> `MovieLensALS`
* `LinearRegressionWithSGD`, `LassoWithSGD`, and `RidgeRegressionWithSGD` -> `LinearRegression`
* `DecisionTree` -> `DecisionTreeRunner`
`scopt` is used for parsing command-line parameters. `scopt` has MIT license and it only depends on `scala-library`.
Example help message:
~~~
BinaryClassification: an example app for binary classification.
Usage: BinaryClassification [options] <input>
--numIterations <value>
number of iterations
--stepSize <value>
initial step size, default: 1.0
--algorithm <value>
algorithm (SVM,LR), default: LR
--regType <value>
regularization type (L1,L2), default: L2
--regParam <value>
regularization parameter, default: 0.1
<input>
input paths to labeled examples in LIBSVM format
~~~
Author: Xiangrui Meng <meng@databricks.com>
Closes #584 from mengxr/mllib-main and squashes the following commits:
7b58c60 [Xiangrui Meng] minor
6e35d7e [Xiangrui Meng] make imports explicit and fix code style
c6178c9 [Xiangrui Meng] update TS PCA/SVD to use new spark-submit
6acff75 [Xiangrui Meng] use scopt for DecisionTreeRunner
be86069 [Xiangrui Meng] use main instead of extending App
b3edf68 [Xiangrui Meng] move DecisionTree's main method to examples
8bfaa5a [Xiangrui Meng] change NaiveBayesParams to Params
fe23dcb [Xiangrui Meng] remove main from KMeans and add DenseKMeans as an example
67f4448 [Xiangrui Meng] remove main methods from linear regression algorithms and add LinearRegression example
b066bbc [Xiangrui Meng] remove main from ALS and add MovieLensALS example
b040f3b [Xiangrui Meng] change BinaryClassificationParams to Params
577945b [Xiangrui Meng] remove unused imports from NB
3d299bc [Xiangrui Meng] remove main from LR/SVM and add an example app for binary classification
f70878e [Xiangrui Meng] remove main from NaiveBayes and add an example NaiveBayes app
01ec2cd [Xiangrui Meng] Merge branch 'master' into mllib-main
9420692 [Xiangrui Meng] add scopt to examples dependencies
(cherry picked from commit 3f38334f441940ed0a5bbf5588ca7f22d3940359)
Signed-off-by: Reynold Xin <rxin@apache.org>
Diffstat (limited to 'examples/pom.xml')
-rw-r--r-- | examples/pom.xml | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/examples/pom.xml b/examples/pom.xml index d4028c88cb..342d7c0742 100644 --- a/examples/pom.xml +++ b/examples/pom.xml @@ -166,6 +166,11 @@ </exclusion> </exclusions> </dependency> + <dependency> + <groupId>com.github.scopt</groupId> + <artifactId>scopt_${scala.binary.version}</artifactId> + <version>3.2.0</version> + </dependency> </dependencies> <build> |