Skip to content

Commit

Permalink
Update SVM.scala
Browse files Browse the repository at this point in the history
  • Loading branch information
tanyinyan committed Mar 17, 2015
1 parent e3f315a commit 158a766
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ class SVMWithSGD private (
private var miniBatchFraction: Double)
extends GeneralizedLinearAlgorithm[SVMModel] with Serializable {

this.setFeatureScaling(true)
private val gradient = new HingeGradient()
private val updater = new SquaredL2Updater()
override val optimizer = new GradientDescent(gradient, updater)
Expand Down

0 comments on commit 158a766

Please sign in to comment.