21 #ifndef KALDI_NNET3_NNET_DISCRIMINATIVE_DIAGNOSTICS_H_ 22 #define KALDI_NNET3_NNET_DISCRIMINATIVE_DIAGNOSTICS_H_ 60 const std::string &output_name)
const;
81 unordered_map<std::string, discriminative::DiscriminativeObjectiveInfo, StringHasher>
objf_info_;
87 #endif // KALDI_NNET3_NNET_DISCRIMINATIVE_DIAGNOSTICS_H_
This code computes Goodness of Pronunciation (GOP) and extracts phone-level pronunciation feature for...
bool PrintTotalStats() const
unordered_map< std::string, discriminative::DiscriminativeObjectiveInfo, StringHasher > objf_info_
~NnetDiscriminativeComputeObjf()
const TransitionModel & tmodel_
This class enables you to do the compilation and optimization in one call, and also ensures that if t...
The two main classes defined in this header are struct ComputationRequest, which basically defines a ...
const discriminative::DiscriminativeObjectiveInfo * GetObjective(const std::string &output_name) const
int32 num_minibatches_processed_
CuVector< BaseFloat > log_priors_
NnetDiscriminativeComputeObjf(const NnetComputeProbOptions &nnet_config, const discriminative::DiscriminativeOptions &discriminative_config, const TransitionModel &tmodel, const VectorBase< BaseFloat > &priors, const Nnet &nnet)
This class is for computing objective-function values in a nnet3 discriminative training, for diagnostics.
discriminative::DiscriminativeOptions discriminative_config_
NnetComputeProbOptions nnet_config_
class NnetComputer is responsible for executing the computation described in the "computation" object...
void Compute(const NnetDiscriminativeExample &eg)
Provides a vector abstraction class.
CachingOptimizingCompiler compiler_
const Nnet & GetDeriv() const
NnetDiscriminativeExample is like NnetExample, but specialized for sequence training.
void ProcessOutputs(const NnetDiscriminativeExample &eg, NnetComputer *computer)