regtree-fmllr-diag-gmm-test.cc File Reference
Include dependency graph for regtree-fmllr-diag-gmm-test.cc:

Go to the source code of this file.

Namespaces

 kaldi
 This code computes Goodness of Pronunciation (GOP) and extracts phone-level pronunciation feature for mispronunciations detection tasks, the reference:
 

Enumerations

enum  cova_type { full, diag }
 Generate features for a certain covariance type covariance_type == 0: full covariance covariance_type == 1: diagonal covariance. More...
 

Functions

static void RandFullCova (Matrix< BaseFloat > *matrix)
 
static void generate_features (cova_type covariance_type, size_t n_gaussians, size_t dim, Matrix< BaseFloat > &trans_mat, size_t frames_per_gaussian, std::vector< Vector< BaseFloat > *> &train_feats, std::vector< Vector< BaseFloat > *> &adapt_feats)
 
void UnitTestRegtreeFmllrDiagGmm (cova_type feature_type, size_t max_bclass)
 
int main ()
 

Function Documentation

◆ main()

int main ( )

Definition at line 308 of file regtree-fmllr-diag-gmm-test.cc.

References kaldi::diag, kaldi::full, rnnlm::i, and kaldi::UnitTestRegtreeFmllrDiagGmm().

308  {
309  for (int i = 0; i <= 8; i+=2) { // test is too slow so can't do too many
310  std::cout << "--------------------------------------" << '\n';
311  std::cout << "Test number " << i << '\n';
312  std::cout << "--\nfeatures = full\n";
314  std::cout << "--\nfeatures = diag\n";
316  std::cout << "--------------------------------------" << '\n';
317  }
318  std::cout << "Test OK.\n";
319 }
void UnitTestRegtreeFmllrDiagGmm(cova_type feature_type, size_t max_bclass)