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

Classes

struct  HoeffdingTreeTestFixture
 

Macros

#define BINDING_TYPE   BINDING_TYPE_TEST
 

Functions

 TEST_CASE_METHOD (HoeffdingTreeTestFixture, "HoeffdingTreeOutputDimensionTest", "[HoeffdingTreeMainTest][BindingTest]")
 Check that number of output points and number of input points are equal.
 
 TEST_CASE_METHOD (HoeffdingTreeTestFixture, "HoeffdingTreeCategoricalOutputDimensionTest", "[HoeffdingTreeMainTest][BindingTest]")
 Check that number of output points and number of input points are equal for categorical dataset.
 
 TEST_CASE_METHOD (HoeffdingTreeTestFixture, "HoeffdingTreeLabelLessTest", "[HoeffdingTreeMainTest][BindingTest]")
 Check whether providing labels explicitly and extracting from last dimension give the same output.
 
 TEST_CASE_METHOD (HoeffdingTreeTestFixture, "HoeffdingModelReuseTest", "[HoeffdingTreeMainTest][BindingTest]")
 Ensure that saved model can be used again.
 
 TEST_CASE_METHOD (HoeffdingTreeTestFixture, "HoeffdingModelCategoricalReuseTest", "[HoeffdingTreeMainTest][BindingTest]")
 Ensure that saved model trained on categorical dataset can be used again.
 
 TEST_CASE_METHOD (HoeffdingTreeTestFixture, "HoeffdingMinSamplesTest", "[HoeffdingTreeMainTest][BindingTest]")
 Ensure that small min_samples creates larger model.
 
 TEST_CASE_METHOD (HoeffdingTreeTestFixture, "HoeffdingMaxSamplesTest", "[HoeffdingTreeMainTest][BindingTest]")
 Ensure that large max_samples creates smaller model.
 
 TEST_CASE_METHOD (HoeffdingTreeTestFixture, "HoeffdingConfidenceTest", "[HoeffdingTreeMainTest][BindingTest]")
 Ensure that small confidence value creates larger model.
 
 TEST_CASE_METHOD (HoeffdingTreeTestFixture, "HoeffdingPassesTest", "[HoeffdingTreeMainTest][BindingTest]")
 Ensure that large number of passes creates larger model.
 
 TEST_CASE_METHOD (HoeffdingTreeTestFixture, "HoeffdingBinarySplittingStrategyTest", "[HoeffdingTreeMainTest][BindingTest]")
 Ensure that the root node has 2 children when splitting strategy is binary.
 
 TEST_CASE_METHOD (HoeffdingTreeTestFixture, "HoeffdingDomingosSplittingStrategyTest", "[HoeffdingTreeMainTest][BindingTest]")
 Ensure that the number of children varies with varying 'bins' in domingos.
 
 TEST_CASE_METHOD (HoeffdingTreeTestFixture, "HoeffdingBinningTest", "[HoeffdingTreeMainTest][BindingTests]")
 Ensure that the model doesn't split if observations before binning is greater than total number of samples passed.
 

Detailed Description

Author
Haritha Nair

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