4#include "../Utilities/clue.hpp"
5#include "../Layer/Dense.hpp"
Base class for all optimizers.
Definition Optimizer.hpp:15
virtual ~Optimizer()=default
Basic destructor.
virtual void update_params(std::shared_ptr< Dense > &layer)=0
Update the parameters of the layer.
const double _lr
Definition Optimizer.hpp:77
void post_update_params()
Post-update parameters (e.g. increase iteration count)
Definition Optimizer.hpp:51
Optimizer(double lr, double decay)
Construct a new Optimizer object.
Definition Optimizer.hpp:23
double _decay
Definition Optimizer.hpp:80
double & current_lr()
Get the current learning rate.
Definition Optimizer.hpp:61
int & iterations()
Get current iteration count.
Definition Optimizer.hpp:71
void pre_update_params()
Pre-update parameters (e.g. learning rate decay)
Definition Optimizer.hpp:40
int _iterations
Definition Optimizer.hpp:79
double _current_lr
Definition Optimizer.hpp:78
Definition Activation.hpp:6