20 #ifndef KALDI_NNET_NNET_TRNOPTS_H_ 21 #define KALDI_NNET_NNET_TRNOPTS_H_ 47 opts->
Register(
"learn-rate", &learn_rate,
"Learning rate");
48 opts->
Register(
"momentum", &momentum,
"Momentum");
49 opts->
Register(
"l2-penalty", &l2_penalty,
"L2 penalty (weight decay)");
50 opts->
Register(
"l1-penalty", &l1_penalty,
"L1 penalty (promote sparsity)");
55 os <<
"NnetTrainOptions : " 57 <<
"momentum" << opts.
momentum <<
", " 80 momentum_step_period(500000),
87 opts->
Register(
"learn-rate", &learn_rate,
"Learning rate");
89 opts->
Register(
"momentum", &momentum,
90 "Initial momentum for linear scheduling");
91 opts->
Register(
"momentum-max", &momentum_max,
92 "Final momentum for linear scheduling");
93 opts->
Register(
"momentum-steps", &momentum_steps,
94 "Number of steps of linear momentum scheduling");
95 opts->
Register(
"momentum-step-period", &momentum_step_period,
96 "Number of datapoints per single momentum increase step");
98 opts->
Register(
"l2-penalty", &l2_penalty,
99 "L2 penalty (weight decay, increases mixing-rate)");
104 os <<
"RbmTrainOptions : " 106 <<
"momentum" << opts.
momentum <<
", " 118 #endif // KALDI_NNET_NNET_TRNOPTS_H_ This code computes Goodness of Pronunciation (GOP) and extracts phone-level pronunciation feature for...
int32 momentum_step_period
virtual void Register(const std::string &name, bool *ptr, const std::string &doc)=0
void Register(OptionsItf *opts)
friend std::ostream & operator<<(std::ostream &os, const NnetTrainOptions &opts)
friend std::ostream & operator<<(std::ostream &os, const RbmTrainOptions &opts)
void Register(OptionsItf *opts)