- current_lr
float current_lr(size_t k, size_t j)
Undocumented in source. Be warned that the author may not have intended to support it.
- dup
ADAM dup()
Undocumented in source. Be warned that the author may not have intended to support it.
- params_to_optimize
void params_to_optimize(float[][] W_, float[][] grad_)
Undocumented in source. Be warned that the author may not have intended to support it.
- register
void register(NeuralLayer layer)
Undocumented in source. Be warned that the author may not have intended to support it.
- toString
string toString()
Undocumented in source. Be warned that the author may not have intended to support it.
- update
void update(NeuralLayer layer, float[] ext_grad)
Undocumented in source. Be warned that the author may not have intended to support it.
- update
void update(NeuralLayer layer, SparseF[] ext_grad)
Undocumented in source. Be warned that the author may not have intended to support it.
- update_general
void update_general(NeuralLayer layer, V[] ext_grad)
Undocumented in source. Be warned that the author may not have intended to support it.
- update_matrix
void update_matrix()
Undocumented in source. Be warned that the author may not have intended to support it.
- num_epochs
ulong num_epochs;
Undocumented in source.
- mini_batch_sz
ulong mini_batch_sz;
Undocumented in source.
- lr
float lr;
Undocumented in source.
- cnt
ulong cnt;
Undocumented in source.
- priors
AdditiveLinearPrior[] priors;
Undocumented in source.
- prox
ProxyLinearPrior prox;
Undocumented in source.
- learn
void learn(NeuralNet nn, D data, S delegate(R net_out, ref T ex, ref V[] grad) grad_f, bool verbose, uint num_cores)
Undocumented in source. Be warned that the author may not have intended to support it.
- current_lr
float current_lr(size_t k, size_t j)
Undocumented in source.
- register
void register(NeuralLayer layer)
Undocumented in source.
- update
void update(NeuralLayer layer, float[] ext_grad)
Undocumented in source.
- update
void update(NeuralLayer layer, SparseF[] ext_grad)
Undocumented in source.
- dup
Optimizer dup()
Undocumented in source.
- toString
string toString()
Undocumented in source. Be warned that the author may not have intended to support it.
ADAM stochastic optimizer.
See ADAM: A method for stochastic optimization