
Go to the source code of this file.
Functions | |
| void | test_io (const RegressionTree ®tree, const AmDiagGmm &acmodel, bool binary) |
| void | rand_diag_gmm (size_t num_comp, size_t dim, DiagGmm *gmm) |
| void | UnitTestRegressionTree () |
| int | main () |
| int main | ( | ) |
Definition at line 147 of file regression-tree-test.cc.
References rnnlm::i, and UnitTestRegressionTree().
Definition at line 60 of file regression-tree-test.cc.
References DiagGmm::ComputeGconsts(), rnnlm::d, kaldi::Exp(), MatrixBase< Real >::InvertElements(), kaldi::RandGauss(), kaldi::RandUniform(), VectorBase< Real >::Scale(), DiagGmm::SetInvVarsAndMeans(), and DiagGmm::SetWeights().
Referenced by UnitTestRegressionTree().
| void test_io | ( | const RegressionTree & | regtree, |
| const AmDiagGmm & | acmodel, | ||
| bool | binary | ||
| ) |
Definition at line 26 of file regression-tree-test.cc.
References KALDI_ASSERT, RegressionTree::Read(), Input::Stream(), and RegressionTree::Write().
Referenced by UnitTestRegressionTree().
| void UnitTestRegressionTree | ( | ) |
Definition at line 83 of file regression-tree-test.cc.
References AmDiagGmm::AddPdf(), RegressionTree::BuildTree(), DiagGmm::CopyFromDiagGmm(), DiagGmm::GetComponentMean(), DiagGmm::GetMeans(), rnnlm::i, DiagGmm::NumGauss(), kaldi::Rand(), rand_diag_gmm(), kaldi::RandInt(), DiagGmm::Resize(), MatrixBase< Real >::Row(), VectorBase< Real >::Set(), DiagGmm::SetMeans(), test_io(), and VectorBase< Real >::Write().
Referenced by main().