Brush C++ API
A flexible interpretable machine learning framework
Loading...
Searching...
No Matches
tree_node.cpp File Reference
#include "tree_node.h"
Include dependency graph for tree_node.cpp:

Go to the source code of this file.

Functions

void to_json (json &j, const tree< Node > &t)
 
void from_json (const json &j, tree< Node > &t)
 load a tree from json. uses a stack.
 

Variables

unordered_map< NodeType, intoperator_complexities
 

Function Documentation

◆ from_json()

void from_json ( const json & j,
tree< Node > & t )

load a tree from json. uses a stack.

Parameters
jjson version of tree.
ttree into which data is loaded.

Definition at line 58 of file tree_node.cpp.

Here is the call graph for this function:

◆ to_json()

void to_json ( json & j,
const tree< Node > & t )

Definition at line 45 of file tree_node.cpp.

Here is the call graph for this function:

Variable Documentation

◆ operator_complexities

unordered_map<NodeType, int> operator_complexities

Definition at line 78 of file tree_node.cpp.