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

Method Optimizer

include/core/optimizer.h:123–126  ·  view source on GitHub ↗

Construct a default optimizer */

Source from the content-addressed store, hash-verified

121
122 /** Construct a default optimizer */
123 Optimizer(int _type) : type("Default"), init_lr(0), lr(0) {
124 CHECK(_type == kAuto) << "Only kAuto can be used for initializing a default optimizer. "
125 << "Please use a float value if you want to specify the learning rate.";
126 }
127
128 /** Construct a default optimizer with learning rate */
129 Optimizer(float _lr = 1e-4) : type("Default"), init_lr(_lr), lr(_lr) {}

Callers 2

__new__Method · 0.80
load_configFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected