Classes | Namespaces | Macros | Typedefs | Enumerations | Functions
testDecisionTree.cpp File Reference
#include <CppUnitLite/TestHarness.h>
#include <gtsam/base/Testable.h>
#include <gtsam/base/serializationTestHelpers.h>
#include <gtsam/discrete/DecisionTree-inl.h>
#include <gtsam/discrete/Ring.h>
#include <gtsam/discrete/Signature.h>
#include <gtsam/inference/Symbol.h>
#include <iomanip>
Include dependency graph for testDecisionTree.cpp:

Go to the source code of this file.

Classes

struct  Crazy
 
struct  CrazyDecisionTree
 
struct  DT
 
struct  gtsam::traits< CrazyDecisionTree >
 
struct  gtsam::traits< DT >
 

Namespaces

 gtsam
 traits
 

Macros

#define DISABLE_DOT
 
#define DOT(x)   (dot(x, #x))
 

Typedefs

typedef DecisionTree< Label, bool > LabelBoolTree
 
typedef DecisionTree< string, bool > StringBoolTree
 

Enumerations

enum  Label {
  U, V, X, Y,
  Z
}
 

Functions

bool bool_of_int (const int &y)
 
template<typename T >
void dot (const T &f, const string &filename)
 
int main ()
 
 TEST (DecisionTree, ApplyWithAssignment)
 
 TEST (DecisionTree, Compose)
 
 TEST (DecisionTree, Constructor)
 
 TEST (DecisionTree, ConstructorOrder)
 
 TEST (DecisionTree, Consume)
 
 TEST (DecisionTree, Containers)
 
 TEST (DecisionTree, ConvertBoth)
 
 TEST (DecisionTree, ConvertValuesOnly)
 
 TEST (DecisionTree, Example)
 
 TEST (DecisionTree, fold)
 
 TEST (DecisionTree, labels)
 
 TEST (DecisionTree, Split)
 
 TEST (DecisionTree, threshold)
 
 TEST (DecisionTree, unzip)
 
 TEST (DecisionTree, visit)
 
 TEST (DecisionTree, visitWith)
 
 TEST (DecisionTree, VisitWithPruned)
 

Macro Definition Documentation

◆ DISABLE_DOT

#define DISABLE_DOT

Definition at line 21 of file testDecisionTree.cpp.

◆ DOT

#define DOT (   x)    (dot(x, #x))

Definition at line 44 of file testDecisionTree.cpp.

Typedef Documentation

◆ LabelBoolTree

Definition at line 343 of file testDecisionTree.cpp.

◆ StringBoolTree

typedef DecisionTree<string, bool> StringBoolTree

Definition at line 322 of file testDecisionTree.cpp.

Enumeration Type Documentation

◆ Label

enum Label
Enumerator

Definition at line 342 of file testDecisionTree.cpp.

Function Documentation

◆ bool_of_int()

bool bool_of_int ( const int y)

Definition at line 322 of file testDecisionTree.cpp.

◆ dot()

template<typename T >
void dot ( const T f,
const string &  filename 
)

Definition at line 38 of file testDecisionTree.cpp.

◆ main()

int main ( )

Definition at line 622 of file testDecisionTree.cpp.

◆ TEST() [1/17]

TEST ( DecisionTree  ,
ApplyWithAssignment   
)

Definition at line 581 of file testDecisionTree.cpp.

◆ TEST() [2/17]

TEST ( DecisionTree  ,
Compose   
)

Definition at line 373 of file testDecisionTree.cpp.

◆ TEST() [3/17]

TEST ( DecisionTree  ,
Constructor   
)

Definition at line 84 of file testDecisionTree.cpp.

◆ TEST() [4/17]

TEST ( DecisionTree  ,
ConstructorOrder   
)

Definition at line 130 of file testDecisionTree.cpp.

◆ TEST() [5/17]

TEST ( DecisionTree  ,
Consume   
)

Definition at line 301 of file testDecisionTree.cpp.

◆ TEST() [6/17]

TEST ( DecisionTree  ,
Containers   
)

Definition at line 399 of file testDecisionTree.cpp.

◆ TEST() [7/17]

TEST ( DecisionTree  ,
ConvertBoth   
)

Definition at line 345 of file testDecisionTree.cpp.

◆ TEST() [8/17]

TEST ( DecisionTree  ,
ConvertValuesOnly   
)

Definition at line 325 of file testDecisionTree.cpp.

◆ TEST() [9/17]

TEST ( DecisionTree  ,
Example   
)

Definition at line 160 of file testDecisionTree.cpp.

◆ TEST() [10/17]

TEST ( DecisionTree  ,
fold   
)

Definition at line 507 of file testDecisionTree.cpp.

◆ TEST() [11/17]

TEST ( DecisionTree  ,
labels   
)

Definition at line 522 of file testDecisionTree.cpp.

◆ TEST() [12/17]

TEST ( DecisionTree  ,
Split   
)

Definition at line 270 of file testDecisionTree.cpp.

◆ TEST() [13/17]

TEST ( DecisionTree  ,
threshold   
)

Definition at line 553 of file testDecisionTree.cpp.

◆ TEST() [14/17]

TEST ( DecisionTree  ,
unzip   
)

Definition at line 532 of file testDecisionTree.cpp.

◆ TEST() [15/17]

TEST ( DecisionTree  ,
visit   
)

Definition at line 421 of file testDecisionTree.cpp.

◆ TEST() [16/17]

TEST ( DecisionTree  ,
visitWith   
)

Definition at line 433 of file testDecisionTree.cpp.

◆ TEST() [17/17]

TEST ( DecisionTree  ,
VisitWithPruned   
)

Definition at line 445 of file testDecisionTree.cpp.



gtsam
Author(s):
autogenerated on Thu Dec 19 2024 04:08:42