public final class Stochastic extends AbstractClimber
w(t+1) = w(t) - alpha * dL/dw(t) where,
SGC may be enhanced using momentum, either classical or Nesterov's. For details see
HillClimber.Adaptation, HillClimber.QueueTypehitsInMain, hitsInSample, hitsInWindow, missesInSample, previousHitRate, sampleSize| Constructor and Description |
|---|
Stochastic(Config config) |
| Modifier and Type | Method and Description |
|---|---|
protected double |
adjust(double hitRate)
Returns the amount to adapt by.
|
adapt, onHit, onMiss, resetSamplepublic Stochastic(Config config)
protected double adjust(double hitRate)
AbstractClimberadjust in class AbstractClimber