20 #ifndef KALDI_NNET2_NNET_STATS_H_ 21 #define KALDI_NNET2_NNET_STATS_H_ 39 opts->
Register(
"bucket-width", &bucket_width,
"Width of bucket in average-derivative " 40 "stats for analysis.");
47 affine_component_index_(affine_component_index),
48 bucket_width_(bucket_width), global_(0, -1) { }
54 void AddStatsFromNnet(
const Nnet &nnet);
56 void PrintStats(std::ostream &os);
71 deriv_begin(deriv_begin), deriv_end(deriv_end), deriv_sum(0.0),
72 deriv_sumsq(0.0), abs_value_sum(0.0), abs_value_sumsq(0.0), count(0) { }
75 void PrintStats(std::ostream &os);
91 std::vector<NnetStats> *stats);
97 #endif // KALDI_NNET2_NNET_STATS_H_
This code computes Goodness of Pronunciation (GOP) and extracts phone-level pronunciation feature for...
int32 affine_component_index_
void Register(OptionsItf *opts)
std::vector< StatsElement > buckets_
void GetNnetStats(const NnetStatsConfig &config, const Nnet &nnet, std::vector< NnetStats > *stats)
BaseFloat abs_value_sumsq
virtual void Register(const std::string &name, bool *ptr, const std::string &doc)=0
StatsElement(BaseFloat deriv_begin, BaseFloat deriv_end)
NnetStats(int32 affine_component_index, BaseFloat bucket_width)