|
mlpack
|
#include <mlpack/core.hpp>#include <mlpack/core/tree/spill_tree.hpp>#include "catch.hpp"#include <stack>
Functions | |
| TEST_CASE ("SpillTreeConstructionCountTest", "[SpillTreeTest]") | |
| Test to make sure the tree contains the correct number of points after it is constructed. More... | |
| TEST_CASE ("SpillTreeConstructionParentTest", "[SpillTreeTest]") | |
| Test to check that parents and children are set correctly. | |
| template<typename SpillType > | |
| void | SpillTreeHyperplaneTestAux () |
| Auxiliary function to execute the same test for different flavours of Spill Trees. | |
| TEST_CASE ("SpillTreeHyperplaneTest", "[SpillTreeTest]") | |
| Test to make sure that the points in the left child are considered to the left by the node's splitting hyperplane, and the same for points in the right child. | |
| TEST_CASE ("SpillTreeMoveConstructorTest", "[SpillTreeTest]") | |
| Simple test for the move constructor. | |
| TEST_CASE ("SpillTreeCopyConstructorTest", "[SpillTreeTest]") | |
| Simple test for the copy constructor. | |
| TEST_CASE ("SpillTreeMoveDatasetTest", "[SpillTreeTest]") | |
| Simple test for the constructor that takes a rvalue reference to the dataset. | |
Tests for the SpillTree class. This should ensure that the class works correctly and that subsequent changes don't break anything.
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.
| TEST_CASE | ( | "SpillTreeConstructionCountTest" | , |
| "" | [SpillTreeTest] | ||
| ) |
Test to make sure the tree contains the correct number of points after it is constructed.
Also, it checks some invariants in the relation between parent and child nodes.
1.8.13