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

Classes

struct  KRANNTestFixture
 

Macros

#define BINDING_TYPE   BINDING_TYPE_TEST
 

Functions

 TEST_CASE_METHOD (KRANNTestFixture, "KRANNEqualDimensionTest", "[KRANNMainTest][BindingTests]")
 
 TEST_CASE_METHOD (KRANNTestFixture, "KRANNInvalidKTest", "[KRANNMainTest][BindingTests]")
 
 TEST_CASE_METHOD (KRANNTestFixture, "KRANNInvalidKQueryDataTest", "[KRANNMainTest][BindingTests]")
 
 TEST_CASE_METHOD (KRANNTestFixture, "KRANNLeafSizeTest", "[KRANNMainTest][BindingTests]")
 Check that we can't specify a negative leaf size.
 
 TEST_CASE_METHOD (KRANNTestFixture, "KRANNRefModelTest", "[KRANNMainTest][BindingTests]")
 
 TEST_CASE_METHOD (KRANNTestFixture, "KRANNInvalidTreeTypeTest", "[KRANNMainTest][BindingTests]")
 
 TEST_CASE_METHOD (KRANNTestFixture, "KRANNInvalidTauTest", "[KRANNMainTest][BindingTests]")
 
 TEST_CASE_METHOD (KRANNTestFixture, "KRANNOutputDimensionTest", "[KRANNMainTest][BindingTests]")
 Make sure that dimensions of the neighbors and distances matrices are correct given a value of k.
 
 TEST_CASE_METHOD (KRANNTestFixture, "KRANNModelReuseTest", "[KRANNMainTest][BindingTests]")
 Ensure that saved model can be used again.
 
 TEST_CASE_METHOD (KRANNTestFixture, "KRANNDifferentLeafSizes", "[KRANNMainTest][BindingTests]")
 Ensure that different leaf sizes give different results.
 
 TEST_CASE_METHOD (KRANNTestFixture, "KRANNDifferentTau", "[KRANNMainTest][BindingTests]")
 Ensure that different tau give different results.
 
 TEST_CASE_METHOD (KRANNTestFixture, "KRANNDifferentAlpha", "[KRANNMainTest][BindingTests]")
 Ensure that different alpha give different results.
 
 TEST_CASE_METHOD (KRANNTestFixture, "KRANNDifferentTreeType", "[KRANNMainTest][BindingTests]")
 Ensure that different tree-type give different results.
 
 TEST_CASE_METHOD (KRANNTestFixture, "KRANNDifferentSingleSampleLimit", "[KRANNMainTest][BindingTests]")
 Ensure that different single_sample_limit gives different results.
 
 TEST_CASE_METHOD (KRANNTestFixture, "KRANNDifferentSampleAtLeaves", "[KRANNMainTest][BindingTests]")
 Ensure that toggling sample_at_leaves gives different results.
 
 TEST_CASE_METHOD (KRANNTestFixture, "KRANNInvalidAlphaTest", "[KRANNMainTest][BindingTests]")
 Ensure that alpha out of range throws an error.
 

Detailed Description

Author
Ryan Curtin
Utkarsh Rai

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