mlpack
Classes | Macros | Functions
hmm_train_test.cpp File Reference
#include <string>
#include <fstream>
#include <mlpack/core.hpp>
#include <mlpack/core/util/mlpack_main.hpp>
#include "test_helper.hpp"
#include <mlpack/methods/hmm/hmm_train_main.cpp>
#include <mlpack/methods/hmm/hmm_model.hpp>
#include "../catch.hpp"
#include "../test_catch_tools.hpp"
Include dependency graph for hmm_train_test.cpp:

Classes

struct  HMMTrainMainTestFixture
 

Macros

#define BINDING_TYPE   BINDING_TYPE_TEST
 

Functions

void FileExists (std::string fileName)
 
void CheckMatricesDiffer (arma::mat &a, arma::mat &b, double tolerance)
 
void ApproximatelyEqual (HMMModel &h1, HMMModel &h2, double tolerance=1.0)
 
 TEST_CASE_METHOD (HMMTrainMainTestFixture, "HMMTrainStatesTest", "[HMMTrainMainTest][BindingTests]")
 
 TEST_CASE_METHOD (HMMTrainMainTestFixture, "HMMTrainToleranceNonNegative", "[HMMTrainMainTest][BindingTests]")
 
 TEST_CASE_METHOD (HMMTrainMainTestFixture, "HMMTrainTypeTest", "[HMMTrainMainTest][BindingTests]")
 
 TEST_CASE_METHOD (HMMTrainMainTestFixture, "HMMTrainGaussianTest", "[HMMTrainMainTest][BindingTests]")
 
 TEST_CASE_METHOD (HMMTrainMainTestFixture, "HMMTrainDiagonalGaussianTest", "[HMMTrainMainTest][BindingTests]")
 
 TEST_CASE_METHOD (HMMTrainMainTestFixture, "HMMTrainReuseDiscreteModelTest", "[HMMTrainMainTest][BindingTests]")
 
 TEST_CASE_METHOD (HMMTrainMainTestFixture, "HMMTrainReuseGaussianModelTest", "[HMMTrainMainTest][BindingTests]")
 
 TEST_CASE_METHOD (HMMTrainMainTestFixture, "HMMTrainNoLabelsReuseModelTest", "[HMMTrainMainTest][BindingTests]")
 
 TEST_CASE_METHOD (HMMTrainMainTestFixture, "HMMTrainBatchModeTest", "[HMMTrainMainTest][BindingTests]")
 
 TEST_CASE_METHOD (HMMTrainMainTestFixture, "HMMTrainRetrainTest1", "[HMMTrainMainTest][BindingTests]")
 
 TEST_CASE_METHOD (HMMTrainMainTestFixture, "HMMTrainRetrainTest2", "[HMMTrainMainTest][BindingTests]")
 
 TEST_CASE_METHOD (HMMTrainMainTestFixture, "HMMTrainRetrainTest3", "[HMMTrainMainTest][BindingTests]")
 

Detailed Description

Author
Daivik Nema

Test mlpackMain() of hmm_train_main.cpp.

mlpack is free software; you may redistribute it and/or modify it under the terms of the 3-clause BSD license. You should have received a copy of the 3-clause BSD license along with mlpack. If not, see http://www.opensource.org/licenses/BSD-3-Clause for more information.