MCPcopy Create free account
hub / github.com/DeepGraphLearning/graphvite / Momentum

Class Momentum

include/core/optimizer.h:279–286  ·  view source on GitHub ↗

Helper class for Momentum */

Source from the content-addressed store, hash-verified

277
278/** Helper class for Momentum */
279class Momentum : public Optimizer {
280public:
281 Momentum(float _lr = 1e-4, float _weight_decay = 0, float _momentum = 0.999,
282 const LRSchedule &_schedule = "linear") :
283 Optimizer("Momentum", 1, _lr, _weight_decay, _schedule) {
284 momentum = _momentum;
285 }
286};
287
288/** Helper class for AdaGrad */
289class AdaGrad : public Optimizer {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected