23 #ifndef KALDI_TRANSFORM_BASIS_FMLLR_DIAG_GMM_H_ 24 #define KALDI_TRANSFORM_BASIS_FMLLR_DIAG_GMM_H_ 53 BasisFmllrOptions(): num_iters(10), size_scale(0.2), min_count(50.0), step_size_iters(3) { }
55 opts->
Register(
"num-iters", &num_iters,
56 "Number of iterations in basis fMLLR update during testing");
57 opts->
Register(
"size-scale", &size_scale,
58 "Scale (< 1.0) on speaker occupancy that gives number of " 60 opts->
Register(
"fmllr-min-count", &min_count,
61 "Minimum count required to update fMLLR");
62 opts->
Register(
"step-size-iters", &step_size_iters,
63 "Number of iterations in computing step size");
83 void ResizeAccus(
int32 dim);
86 void Write(std::ostream &out_stream,
bool binary)
const;
87 void Read(std::istream &in_stream,
bool binary,
bool add =
false);
112 dim_ = dim; basis_size_ = dim * (dim + 1);
116 void Write(std::ostream &out_stream,
bool binary)
const;
117 void Read(std::istream &in_stream,
bool binary);
126 void EstimateFmllrBasis(
const AmDiagGmm &am_gmm,
134 void ComputeAmDiagPrecond(
const AmDiagGmm &am_gmm,
169 #endif // KALDI_TRANSFORM_BASIS_FMLLR_DIAG_GMM_H_
double beta_
Occupancy count.
This code computes Goodness of Pronunciation (GOP) and extracts phone-level pronunciation feature for...
Packed symetric matrix class.
std::vector< Matrix< BaseFloat > > fmllr_basis_
Basis matrices.
BasisFmllrAccus(int32 dim)
virtual void Register(const std::string &name, bool *ptr, const std::string &doc)=0
Stats for fMLLR subspace estimation.
BasisFmllrEstimate(int32 dim)
void Register(OptionsItf *opts)
int32 dim_
Feature dimension.
SpMatrix< BaseFloat > grad_scatter_
Gradient scatter. Dim is [(D+1)*D] [(D+1)*D].
int32 dim_
Feature dimension.
A class representing a vector.
int32 basis_size_
Number of bases D*(D+1)
Estimation functions for basis fMLLR.