mlpack
Classes | Macros | Functions
preprocess_binarize_test.cpp File Reference
#include <mlpack/core.hpp>
#include <mlpack/core/util/mlpack_main.hpp>
#include <mlpack/methods/preprocess/preprocess_binarize_main.cpp>
#include "test_helper.hpp"
#include "../test_catch_tools.hpp"
#include "../catch.hpp"
Include dependency graph for preprocess_binarize_test.cpp:

Classes

struct  PreprocessBinarizeTestFixture
 

Macros

#define BINDING_TYPE   BINDING_TYPE_TEST
 

Functions

 TEST_CASE_METHOD (PreprocessBinarizeTestFixture, "PreprocessBinarizeDimensionTest", "[PreprocessBinarizeMainTest][BindingTests]")
 Check that input and output have same dimensions.
 
 TEST_CASE_METHOD (PreprocessBinarizeTestFixture, "PreprocessBinarizeNegativeDimensionTest", "[PreprocessBinarizeMainTest][BindingTests]")
 Check that specified dimension is non-negative.
 
 TEST_CASE_METHOD (PreprocessBinarizeTestFixture, "PreprocessBinarizelargerDimensionTest", "[PreprocessBinarizeMainTest][BindingTests]")
 Check that we can't specify a dimension larger than input.
 
 TEST_CASE_METHOD (PreprocessBinarizeTestFixture, "PreprocessBinarizeVerificationTest", "[PreprocessBinarizeMainTest][BindingTests]")
 Check that binarization took place for the specified dimension.
 
 TEST_CASE_METHOD (PreprocessBinarizeTestFixture, "PreprocessBinarizeDimensionLessVerTest", "[PreprocessBinarizeMainTest][BindingTests]")
 Check that all dimensions are binarized when dimension is not specified.
 

Detailed Description

Author
Manish Kumar

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