21 #ifndef KALDI_NNET2_TRAIN_NNET_ENSEMBLE_H_ 22 #define KALDI_NNET2_TRAIN_NNET_ENSEMBLE_H_ 38 minibatches_per_phase(50),
42 opts->
Register(
"minibatch-size", &minibatch_size,
43 "Number of samples per minibatch of training data.");
44 opts->
Register(
"minibatches-per-phase", &minibatches_per_phase,
45 "Number of minibatches to wait before printing training-set " 48 "weight of the second term in the objf, which is the cross-entropy " 49 "between the output posteriors and the averaged posteriors from other nets.");
67 std::vector<Nnet*> nnet_ensemble);
77 void TrainOneMinibatch();
81 void BeginNewPhase(
bool first_time);
double avg_logprob_this_phase_
This code computes Goodness of Pronunciation (GOP) and extracts phone-level pronunciation feature for...
NnetExample is the input data and corresponding label (or labels) for one or more frames of input...
int32 minibatches_seen_this_phase_
int32 minibatches_per_phase
std::vector< NnetExample > buffer_
#define KALDI_DISALLOW_COPY_AND_ASSIGN(type)
virtual void Register(const std::string &name, bool *ptr, const std::string &doc)=0
void Register(OptionsItf *opts)
This header provides functionality for sample-by-sample stochastic gradient descent and gradient comp...
std::vector< NnetUpdater * > updater_ensemble_
NnetEnsembleTrainerConfig()
std::vector< Nnet * > nnet_ensemble_
NnetEnsembleTrainerConfig config_