mlpack
Classes | Macros | Functions
lmnn_test.cpp File Reference
#include <string>
#include <mlpack/core.hpp>
#include <mlpack/core/util/mlpack_main.hpp>
#include <mlpack/core/metrics/lmetric.hpp>
#include "test_helper.hpp"
#include <mlpack/methods/lmnn/lmnn_main.cpp>
#include "../test_catch_tools.hpp"
#include "../catch.hpp"
Include dependency graph for lmnn_test.cpp:

Classes

struct  LMNNTestFixture
 

Macros

#define BINDING_TYPE   BINDING_TYPE_TEST
 

Functions

 TEST_CASE_METHOD (LMNNTestFixture, "LMNNExplicitImplicitLabelsTest", "[LMNNMainTest][BindingTests]")
 Ensure that, when labels are implicitily given with input, the last column is treated as labels and that we get the desired shape of output.
 
 TEST_CASE_METHOD (LMNNTestFixture, "LMNNOptimizerTest", "[LMNNMainTest][BindingTests]")
 Ensure that when we pass optimizer of type lbfgs, we also get the desired shape of output.
 
 TEST_CASE_METHOD (LMNNTestFixture, "LMNNValidDistanceTest", "[LMNNMainTest][BindingTests]")
 Ensure that when we pass a valid initial learning point, we get output of the same dimensions.
 
 TEST_CASE_METHOD (LMNNTestFixture, "LMNNValidDistanceTest2", "[LMNNMainTest][BindingTests]")
 Ensure that when we pass a valid initial square matrix as the learning point, we get output of the same dimensions.
 
 TEST_CASE_METHOD (LMNNTestFixture, "LMNNInvalidDistanceTest", "[LMNNMainTest][BindingTests]")
 Ensure that when we pass an invalid initial learning point, we get output as the square matrix.
 
 TEST_CASE_METHOD (LMNNTestFixture, "LMNNNumTargetsTest", "[LMNNMainTest][BindingTests]")
 Ensure that if number of available labels in a class is less than the number of targets, an error occurs.
 
 TEST_CASE_METHOD (LMNNTestFixture, "LMNNDiffNormalizationTest", "[LMNNMainTest][BindingTests]")
 Ensure that setting normalize as true results in a different output matrix then when set to false.
 
 TEST_CASE_METHOD (LMNNTestFixture, "LMNNDiffStepSizeTest", "[LMNNMainTest][BindingTests]")
 Ensure that output is different when step_size is different.
 
 TEST_CASE_METHOD (LMNNTestFixture, "LMNNDiffToleranceTest", "[LMNNMainTest][BindingTests]")
 Ensure that output is different when the tolerance is different.
 
 TEST_CASE_METHOD (LMNNTestFixture, "LMNNDiffBatchSizeTest", "[LMNNMainTest][BindingTests]")
 Ensure that output is different when batch_size is different.
 
 TEST_CASE_METHOD (LMNNTestFixture, "LMNNDiffNumTargetsTest", "[LMNNMainTest][BindingTests]")
 Ensure that different value of number of targets results in a different output matrix.
 
 TEST_CASE_METHOD (LMNNTestFixture, "LMNNDiffRegularizationTest", "[LMNNMainTest][BindingTests]")
 Ensure that different value of regularization results in a different output matrix.
 
 TEST_CASE_METHOD (LMNNTestFixture, "LMNNDiffRangeTest", "[LMNNMainTest][BindingTests]")
 Ensure that different value of range results in a different output matrix.
 
 TEST_CASE_METHOD (LMNNTestFixture, "LMNNDiffMaxIterationTest", "[LMNNMainTest][BindingTests]")
 Ensure that using a different value of max_iteration results in a different output matrix.
 
 TEST_CASE_METHOD (LMNNTestFixture, "LMNNDiffPassesTest", "[LMNNMainTest][BindingTests]")
 Ensure that using a different value of passes results in a different output matrix.
 
 TEST_CASE_METHOD (LMNNTestFixture, "LMNNBoundsTest", "[LMNNMainTest][BindingTests]")
 Ensure that number of targets, range, batch size must be always positive and regularization, step size, max iterations, rank, passes & tolerance are always non-negative.
 

Detailed Description

Author
Manish Kumar

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