Skip to content

Commit

Permalink
add comment for regParam
Browse files Browse the repository at this point in the history
  • Loading branch information
hhbyyh committed Jan 19, 2017
1 parent d62c107 commit 9b71a3a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ class LinearSVCSuite extends SparkFunSuite with MLlibTestSparkContext with Defau

test("linearSVC comparison with R e1071 and scikit-learn") {
val trainer1 = new LinearSVC()
.setRegParam(0.00002)
.setRegParam(0.00002) // set regParam = 2.0 / datasize / c
.setMaxIter(200)
.setTol(1e-4)
val model1 = trainer1.fit(binaryDataset)
Expand Down

0 comments on commit 9b71a3a

Please sign in to comment.