Skip to content

Commit

Permalink
fix the wrong requirement of FactorScheduler in LRScheduler.scala (ap…
Browse files Browse the repository at this point in the history
…ache#1807)

fix the wrong requirement of FactorScheduler in LRScheduler.scala
  • Loading branch information
Ldpe2G authored and terrytangyuan committed Apr 8, 2016
1 parent 1a61815 commit ee1d3c6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ class FactorScheduler(protected var step: Int, protected var factor: Float) exte
protected var count: Int = 0
private val logger = LoggerFactory.getLogger(classOf[FactorScheduler])

require(step < 1, "Schedule step must be greater or equal than 1 round")
require(factor >= 1.0, "Factor must be less than 1 to make lr reduce")
require(step >= 1, "Schedule step must be greater or equal than 1 round")
require(factor < 1.0, "Factor must be less than 1 to make lr reduce")

def apply(numUpdate: Int): Float = {

Expand Down

0 comments on commit ee1d3c6

Please sign in to comment.