File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
examples/src/main/scala/org/apache/spark/examples/mllib Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -48,17 +48,17 @@ object BinaryClassification extends App {
4848 import Algorithm ._
4949 import RegType ._
5050
51- case class BinaryClassificationParams (
51+ case class Params (
5252 input : String = null ,
5353 numIterations : Int = 100 ,
5454 stepSize : Double = 1.0 ,
5555 algorithm : Algorithm = LR ,
5656 regType : RegType = L2 ,
5757 regParam : Double = 0.1 )
5858
59- val defaultParams = BinaryClassificationParams ()
59+ val defaultParams = Params ()
6060
61- val parser = new OptionParser [BinaryClassificationParams ](" BinaryClassification" ) {
61+ val parser = new OptionParser [Params ](" BinaryClassification" ) {
6262 head(" BinaryClassification: an example app for binary classification." )
6363 opt[Int ](" numIterations" )
6464 .text(" number of iterations" )
@@ -88,7 +88,7 @@ object BinaryClassification extends App {
8888 sys.exit(1 )
8989 }
9090
91- def run (params : BinaryClassificationParams ) {
91+ def run (params : Params ) {
9292 val conf = new SparkConf ().setAppName(s " BinaryClassification with $params" )
9393 val sc = new SparkContext (conf)
9494
You can’t perform that action at this time.
0 commit comments