mlpack
Classes | Macros | Functions
pca_test.cpp File Reference
#include <string>
#include <mlpack/core.hpp>
#include <mlpack/core/util/mlpack_main.hpp>
#include "test_helper.hpp"
#include <mlpack/methods/pca/pca_main.cpp>
#include "../catch.hpp"
Include dependency graph for pca_test.cpp:

Classes

struct  PCATestFixture
 

Macros

#define BINDING_TYPE   BINDING_TYPE_TEST
 

Functions

 TEST_CASE_METHOD (PCATestFixture, "PCADimensionTest", "[PCAMainTest][BindingTests]")
 Make sure that if we ask for a dataset in 3 dimensions back, we get it.
 
 TEST_CASE_METHOD (PCATestFixture, "PCAVarRetainTest", "[PCAMainTest][BindingTests]")
 Ensure that if we retain all variance, we get back a matrix with the same dimensionality.
 
 TEST_CASE_METHOD (PCATestFixture, "PCANoVarRetainTest", "[PCAMainTest][BindingTests]")
 Ensure that if we retain no variance, we get back no dimensions.
 
 TEST_CASE_METHOD (PCATestFixture, "PCATooHighNewDimensionalityTest", "[PCAMainTest][BindingTests]")
 Check that we can't specify an invalid new dimensionality.
 

Detailed Description

Author
Ryan Curtin

Test mlpackMain() of pca_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.