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

Classes

struct  PreprocessOneHotEncodingTestFixture
 

Macros

#define BINDING_TYPE   BINDING_TYPE_TEST
 

Functions

 TEST_CASE_METHOD (PreprocessOneHotEncodingTestFixture, "PreprocessOneHotEncodingTest", "[PreprocessOneHotEncodingMainTest][BindingTests]")
 Test one hot encoding binding.
 
 TEST_CASE_METHOD (PreprocessOneHotEncodingTestFixture, "EmptyMatrixTest", "[PreprocessOneHotEncodingMainTest][BindingTests]")
 Test for empty matrix.
 
 TEST_CASE_METHOD (PreprocessOneHotEncodingTestFixture, "EmptyIndicesTest", "[PreprocessOneHotEncodingMainTest][BindingTests]")
 Test empty vector as input for dimensions.
 
 TEST_CASE_METHOD (PreprocessOneHotEncodingTestFixture, "InvalidDimensionTest", "[PreprocessOneHotEncodingMainTest][BindingTests]")
 Test for invalid dimension, larger than count of rows.
 
 TEST_CASE_METHOD (PreprocessOneHotEncodingTestFixture, "NegativeDimensionTest", "[PreprocessOneHotEncodingMainTest][BindingTests]")
 Test for negative dimensions.
 
 TEST_CASE_METHOD (PreprocessOneHotEncodingTestFixture, "EmptyMatrixEmptyIndicesTest", "[PreprocessOneHotEncodingMainTest][BindingTests]")
 Test for empty matrix and empty dimensions vector.
 

Detailed Description

Author
Jeffin Sam

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