Skip to content

Commit b040f3b

Browse files
committed
change BinaryClassificationParams to Params
1 parent 577945b commit b040f3b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

examples/src/main/scala/org/apache/spark/examples/mllib/BinaryClassification.scala

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)