Skip to content

Instantly share code, notes, and snippets.

@lisitsyn
Created July 27, 2015 17:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lisitsyn/32bb2a13aacd9cbf9b1b to your computer and use it in GitHub Desktop.
Save lisitsyn/32bb2a13aacd9cbf9b1b to your computer and use it in GitHub Desktop.
struct MutableState {
};
class Regularizer {
virtual void update(MutableState*) = 0;
};
class LearningRate {
virtual void update(MutableState*) = 0;
};
class GradientUpdate {
virtual void update(MutableState*) = 0;
};
class Optimizer {
...
lr.update(state);
regularier.update(state);
gradient.update(state);
...
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment