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

Classes

struct  DecisionStumpTestFixture
 

Macros

#define BINDING_TYPE   BINDING_TYPE_TEST
 

Functions

 TEST_CASE_METHOD (DecisionStumpTestFixture, "DecisionStumpOutputDimensionTest", "[DecisionStumpMainTest][BindingTests]")
 Ensure that we get desired dimensions when both training data and labels are passed.
 
 TEST_CASE_METHOD (DecisionStumpTestFixture, "DecisionStumpLabelsLessDimensionTest", "[DecisionStumpMainTest][BindingTests]")
 Check that last row of input file is used as labels when labels are not passed specifically and results are same from both label and labeless models.
 
 TEST_CASE_METHOD (DecisionStumpTestFixture, "DecisionStumpModelReuseTest", "[DecisionStumpMainTest][BindingTests]")
 Ensure that saved model can be used again.
 
 TEST_CASE_METHOD (DecisionStumpTestFixture, "DecisionStumpBucketSizeTest", "[DecisionStumpMainTest][BindingTests]")
 Ensure that bucket_size is always positive.
 
 TEST_CASE_METHOD (DecisionStumpTestFixture, "DecisionStumpTrainingVerTest", "[DecisionStumpMainTest][BindingTests]")
 Make sure only one of training data or pre-trained model is passed.
 

Detailed Description

Author
Manish Kumar

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