20 #ifndef KALDI_NNET3_NNET_CHAIN_DIAGNOSTICS_H_ 21 #define KALDI_NNET3_NNET_CHAIN_DIAGNOSTICS_H_ 29 #include "chain/chain-training.h" 30 #include "chain/chain-den-graph.h" 58 const chain::ChainTrainingOptions &chain_config,
68 const chain::ChainTrainingOptions &chain_config,
80 bool PrintTotalStats()
const;
89 double GetTotalObjective(
double *
tot_weight)
const;
93 const Nnet &GetDeriv()
const;
109 unordered_map<std::string, ChainObjectiveInfo, StringHasher>
objf_info_;
118 const chain::ChainTrainingOptions &chain_config,
127 #endif // KALDI_NNET3_NNET_CHAIN_DIAGNOSTICS_H_
This code computes Goodness of Pronunciation (GOP) and extracts phone-level pronunciation feature for...
chain::ChainTrainingOptions chain_config_
This class is for computing objective-function values in a nnet3+chain setup, for diagnostics...
This class enables you to do the compilation and optimization in one call, and also ensures that if t...
CachingOptimizingCompiler compiler_
unordered_map< std::string, ChainObjectiveInfo, StringHasher > objf_info_
fst::StdVectorFst StdVectorFst
The two main classes defined in this header are struct ComputationRequest, which basically defines a ...
chain::DenominatorGraph den_graph_
void RecomputeStats(const std::vector< NnetChainExample > &egs, const chain::ChainTrainingOptions &chain_config_in, const fst::StdVectorFst &den_fst, Nnet *nnet)
This function zeros the stored component-level stats in the nnet using ZeroComponentStats(), then recomputes them with the supplied egs.
NnetChainExample is like NnetExample, but specialized for lattice-free (chain) training.
NnetComputeProbOptions nnet_config_
class NnetComputer is responsible for executing the computation described in the "computation" object...
int32 num_minibatches_processed_