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

Method adagrad_update

include/core/optimizer.h:182–186  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

180 */
181 template<class Float>
182 __device__ inline Float adagrad_update(Float parameter, Float gradient, Float &moment1, Float weight = 1) const {
183 Float regularized = weight * (gradient + weight_decay * parameter);
184 moment1 += regularized * regularized;
185 return lr * regularized / (sqrt(moment1) + epsilon);
186 }
187
188 /**
189 * @brief RMSprop update rule

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected