#include "base/kaldi-math.h"
#include "gmm/model-test-common.h"
#include "sgmm2/am-sgmm2.h"
#include "sgmm2/estimate-am-sgmm2.h"
#include "util/kaldi-io.h"
Go to the source code of this file.
Functions | |
void | TestSgmm2AccsIO (const AmSgmm2 &sgmm, const kaldi::Matrix< BaseFloat > &feats) |
void | UnitTestEstimateSgmm2 () |
int | main () |
int main | ( | ) |
Definition at line 162 of file estimate-am-sgmm2-test.cc.
References rnnlm::i, and UnitTestEstimateSgmm2().
void TestSgmm2AccsIO | ( | const AmSgmm2 & | sgmm, |
const kaldi::Matrix< BaseFloat > & | feats | ||
) |
Definition at line 38 of file estimate-am-sgmm2-test.cc.
References kaldi::AssertEqual(), MleAmSgmm2Accs::Check(), AmSgmm2::ComputeDerivedVars(), AmSgmm2::ComputePerFrameVars(), AmSgmm2::CopyFromSgmm2(), AmSgmm2::FeatureDim(), MleAmSgmm2Options::full_col_cov, Sgmm2GselectConfig::full_gmm_nbest, MleAmSgmm2Options::full_row_cov, AmSgmm2::GaussianSelection(), rnnlm::i, kaldi::kSgmmAll, kaldi::kSgmmSpeakerWeightProjections, AmSgmm2::LogLikelihood(), AmSgmm2::NumGauss(), AmSgmm2::NumGroups(), AmSgmm2::NumPdfs(), MatrixBase< Real >::NumRows(), AmSgmm2::PhoneSpaceDim(), kaldi::RandUniform(), MleAmSgmm2Accs::Read(), Sgmm2PerFrameDerivedVars::Resize(), MatrixBase< Real >::Row(), Input::Stream(), MleAmSgmm2Options::tau_map_M, MleAmSgmm2Updater::Update(), MleAmSgmm2Accs::Write(), and AmSgmm2::Write().
Referenced by UnitTestEstimateSgmm2().
void UnitTestEstimateSgmm2 | ( | ) |
Definition at line 126 of file estimate-am-sgmm2-test.cc.
References AmSgmm2::ComputeDerivedVars(), AmSgmm2::ComputeNormalizers(), rnnlm::d, kaldi::Exp(), AmSgmm2::InitializeFromFullGmm(), kaldi::unittest::InitRandFullGmm(), kaldi::unittest::RandDiagGaussFeatures(), kaldi::RandGauss(), kaldi::RandInt(), Matrix< Real >::Resize(), MatrixBase< Real >::Row(), and TestSgmm2AccsIO().
Referenced by main().