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

Classes

struct  ApproxKFNTestFixture
 

Macros

#define BINDING_TYPE   BINDING_TYPE_TEST
 

Functions

 TEST_CASE_METHOD (ApproxKFNTestFixture, "ApproxKFNRefModelTest", "[ApproxKFNMainTest][BindingTests]")
 Check that we can't specify both a reference set and an input model.
 
 TEST_CASE_METHOD (ApproxKFNTestFixture, "ApproxKFNInvalidKTest", "[ApproxKFNMainTest][BindingTests]")
 Check that we can't specify an invalid k.
 
 TEST_CASE_METHOD (ApproxKFNTestFixture, "ApproxKFNOutputDimensionTest", "[ApproxKFNMainTest][BindingTests]")
 Make sure that the dimensions of neighbors and distances is correct given a value of k.
 
 TEST_CASE_METHOD (ApproxKFNTestFixture, "ApproxKFNInvalidAlgorithmTest", "[ApproxKFNMainTest][BindingTests]")
 Check that we can't specify an invalid algorithm.
 
 TEST_CASE_METHOD (ApproxKFNTestFixture, "ApproxKFNZeroNumProjTest", "[ApproxKFNMainTest][BindingTests]")
 Check that we can't specify num_projections as zero.
 
 TEST_CASE_METHOD (ApproxKFNTestFixture, "ApproxKFNNegativeNumProjTest", "[ApproxKFNMainTest][BindingTests]")
 Check that we can't specify num_projections as negative.
 
 TEST_CASE_METHOD (ApproxKFNTestFixture, "ApproxKFNZeroNumTablesTest", "[ApproxKFNMainTest][BindingTests]")
 Check that we can't specify num_tables as zero.
 
 TEST_CASE_METHOD (ApproxKFNTestFixture, "ApproxKFNNegativeNumTablesTest", "[ApproxKFNMainTest][BindingTests]")
 Check that we can't specify num_tables as negative.
 
 TEST_CASE_METHOD (ApproxKFNTestFixture, "ApproxKFNModelReuseTest", "[ApproxKFNMainTest][BindingTests]")
 Ensuring that a saved model can be loaded and used again correctly.
 
 TEST_CASE_METHOD (ApproxKFNTestFixture, "ApproxKFNNumTablesChangeTest", "[ApproxKFNMainTest][BindingTests]")
 Ensuring that num_tables has some effects on output.
 
 TEST_CASE_METHOD (ApproxKFNTestFixture, "ApproxKFNNumProjectionsChangeTest", "[ApproxKFNMainTest][BindingTests]")
 Ensuring that num_projections has some effects on output.
 
 TEST_CASE_METHOD (ApproxKFNTestFixture, "ApproxKFNExactDistDimensionTest", "[ApproxKFNMainTest][BindingTests]")
 Make sure that the dimensions of the exact distances matrix are correct.
 
 TEST_CASE_METHOD (ApproxKFNTestFixture, "ApproxKFNDifferentAlgoTest", "[ApproxKFNMainTest][BindingTests]")
 Make sure that the two strategie (Drusilla Select and QDAFN) output different results.
 

Detailed Description

Author
Namrata Mukhija

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