#include "util/common-utils.h"
#include "gmm/diag-gmm.h"
#include "gmm/mle-diag-gmm.h"
#include "gmm/mle-am-diag-gmm.h"
#include "gmm/model-test-common.h"
#include "transform/regtree-mllr-diag-gmm.h"
Go to the source code of this file.
Functions | |
void | TestMllrAccsIO (const kaldi::AmDiagGmm &am_gmm, const kaldi::RegressionTree ®tree, const RegtreeMllrDiagGmmAccs &accs, const kaldi::Matrix< BaseFloat > adapt_data) |
void | TestXformMean (const kaldi::AmDiagGmm &am_gmm, const kaldi::RegressionTree ®tree, const RegtreeMllrDiagGmmAccs &accs, const kaldi::Matrix< BaseFloat > adapt_data) |
void | UnitTestRegtreeMllrDiagGmm () |
int | main () |
int main | ( | ) |
Definition at line 188 of file regtree-mllr-diag-gmm-test.cc.
References kaldi::g_kaldi_verbose_level, rnnlm::i, and UnitTestRegtreeMllrDiagGmm().
void TestMllrAccsIO | ( | const kaldi::AmDiagGmm & | am_gmm, |
const kaldi::RegressionTree & | regtree, | ||
const RegtreeMllrDiagGmmAccs & | accs, | ||
const kaldi::Matrix< BaseFloat > | adapt_data | ||
) |
Definition at line 33 of file regtree-mllr-diag-gmm-test.cc.
References kaldi::AssertEqual(), AmDiagGmm::CopyFromAmDiagGmm(), AmDiagGmm::Dim(), DiagGmm::Generate(), kaldi::unittest::InitRandDiagGmm(), rnnlm::j, KALDI_LOG, AmDiagGmm::LogLikelihood(), RegtreeMllrOptions::min_count, MatrixBase< Real >::NumRows(), kaldi::RandInt(), RegtreeMllrDiagGmmAccs::Read(), MatrixBase< Real >::Row(), Input::Stream(), RegtreeMllrDiagGmm::TransformModel(), RegtreeMllrDiagGmmAccs::Update(), RegtreeMllrOptions::use_regtree, and RegtreeMllrDiagGmmAccs::Write().
Referenced by UnitTestRegtreeMllrDiagGmm().
void TestXformMean | ( | const kaldi::AmDiagGmm & | am_gmm, |
const kaldi::RegressionTree & | regtree, | ||
const RegtreeMllrDiagGmmAccs & | accs, | ||
const kaldi::Matrix< BaseFloat > | adapt_data | ||
) |
Definition at line 103 of file regtree-mllr-diag-gmm-test.cc.
References kaldi::AssertEqual(), DiagGmm::ComputeGconsts(), AmDiagGmm::CopyFromAmDiagGmm(), DiagGmm::CopyFromDiagGmm(), AmDiagGmm::Dim(), AmDiagGmm::GetPdf(), RegtreeMllrDiagGmm::GetTransformedMeans(), DiagGmm::inv_vars(), rnnlm::j, KALDI_LOG, AmDiagGmm::LogLikelihood(), DiagGmm::LogLikelihood(), RegtreeMllrOptions::min_count, DiagGmm::NumGauss(), MatrixBase< Real >::NumRows(), MatrixBase< Real >::Row(), DiagGmm::SetInvVarsAndMeans(), RegtreeMllrDiagGmm::TransformModel(), RegtreeMllrDiagGmmAccs::Update(), and RegtreeMllrOptions::use_regtree.
Referenced by UnitTestRegtreeMllrDiagGmm().
void UnitTestRegtreeMllrDiagGmm | ( | ) |
Definition at line 149 of file regtree-mllr-diag-gmm-test.cc.
References RegtreeMllrDiagGmmAccs::AccumulateForGmm(), RegressionTree::BuildTree(), DiagGmm::Generate(), AmDiagGmm::Init(), RegtreeMllrDiagGmmAccs::Init(), kaldi::unittest::InitRandDiagGmm(), rnnlm::j, KALDI_LOG, RegressionTree::NumBaseclasses(), kaldi::RandInt(), TestMllrAccsIO(), and TestXformMean().
Referenced by main().