mlpack
Functions
cosine_tree_test.cpp File Reference
#include <mlpack/core.hpp>
#include <mlpack/core/tree/cosine_tree/cosine_tree.hpp>
#include "catch.hpp"
#include "test_catch_tools.hpp"
Include dependency graph for cosine_tree_test.cpp:

Functions

 TEST_CASE ("CosineTreeNoSplit", "[CosineTreeTest]")
 Constructs a cosine tree with epsilon = 1. More...
 
 TEST_CASE ("CosineNodeCosineSplit", "[CosineTreeTest]")
 Checks CosineTree::CosineNodeSplit() by doing a depth first search on a random dataset and checking if it satisfies the split condition.
 
 TEST_CASE ("CosineTreeModifiedGramSchmidt", "[CosineTreeTest]")
 Checks CosineTree::ModifiedGramSchmidt() by creating a random basis for the vector subspace and checking if all the vectors are orthogonal to each other.
 
 TEST_CASE ("CopyConstructorAndOperatorCosineTreeTest", "[CosineTreeTest]")
 Test the copy constructor & copy assignment using Cosine trees.
 
 TEST_CASE ("MoveConstructorAndOperatorCosineTreeTest", "[CosineTreeTest]")
 Test the move constructor & move assignment using Cosine trees.
 

Detailed Description

Author
Siddharth Agrawal

Test file for CosineTree class.

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.

Function Documentation

◆ TEST_CASE()

TEST_CASE ( "CosineTreeNoSplit"  ,
""  [CosineTreeTest] 
)

Constructs a cosine tree with epsilon = 1.

Checks if the root node is split further, as it shouldn't be.