Brush C++ API
A flexible interpretable machine learning framework
Loading...
Searching...
No Matches
Brush::Simpl::Inexact_simplifier Class Reference

#include <inexact.h>

Collaboration diagram for Brush::Simpl::Inexact_simplifier:

Public Member Functions

void init (int hashSize, const Dataset &data, int numPlanes)
 
template<ProgramType P>
void analyze_tree (Program< P > &program, const SearchSpace &ss, const Dataset &d)
 
template<ProgramType P>
Program< P > simplify_tree (Program< P > &program, const SearchSpace &ss, const Dataset &d)
 
 Inexact_simplifier ()
 
 ~Inexact_simplifier ()
 
template<ProgramType P>
void index (TreeIter &spot, const Dataset &d)
 
void log_simplification_table (std::ofstream &log)
 

Public Attributes

int inputDim = 1000
 

Private Member Functions

template<ProgramType P>
vector< size_t > hash (TreeIter &spot, const Dataset &d)
 
template<ProgramType P>
optional< vector< tree< Node > > > query (TreeIter &spot, const Dataset &d)
 
string dt_to_string (DataType dt)
 

Private Attributes

std::unordered_map< DataType, HashStorageequivalentExpressions
 
vector< MatrixXf > uniformPlanes
 

Detailed Description

Definition at line 123 of file inexact.h.

Constructor & Destructor Documentation

◆ Inexact_simplifier()

Brush::Simpl::Inexact_simplifier::Inexact_simplifier ( )

Definition at line 12 of file inexact.cpp.

◆ ~Inexact_simplifier()

Brush::Simpl::Inexact_simplifier::~Inexact_simplifier ( )

Definition at line 38 of file inexact.cpp.

Member Function Documentation

◆ analyze_tree()

template<ProgramType P>
void Brush::Simpl::Inexact_simplifier::analyze_tree ( Program< P > & program,
const SearchSpace & ss,
const Dataset & d )
inline

Definition at line 133 of file inexact.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ dt_to_string()

string Brush::Simpl::Inexact_simplifier::dt_to_string ( DataType dt)
inlineprivate

Definition at line 393 of file inexact.h.

Here is the caller graph for this function:

◆ hash()

template<ProgramType P>
vector< size_t > Brush::Simpl::Inexact_simplifier::hash ( TreeIter & spot,
const Dataset & d )
inlineprivate

Definition at line 292 of file inexact.h.

Here is the caller graph for this function:

◆ index()

template<ProgramType P>
void Brush::Simpl::Inexact_simplifier::index ( TreeIter & spot,
const Dataset & d )
inline

Definition at line 256 of file inexact.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ init()

void Brush::Simpl::Inexact_simplifier::init ( int hashSize,
const Dataset & data,
int numPlanes )

Definition at line 17 of file inexact.cpp.

Here is the call graph for this function:

◆ log_simplification_table()

void Brush::Simpl::Inexact_simplifier::log_simplification_table ( std::ofstream & log)
inline

Definition at line 275 of file inexact.h.

Here is the call graph for this function:

◆ query()

template<ProgramType P>
optional< vector< tree< Node > > > Brush::Simpl::Inexact_simplifier::query ( TreeIter & spot,
const Dataset & d )
inlineprivate

Definition at line 356 of file inexact.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ simplify_tree()

template<ProgramType P>
Program< P > Brush::Simpl::Inexact_simplifier::simplify_tree ( Program< P > & program,
const SearchSpace & ss,
const Dataset & d )
inline

Definition at line 161 of file inexact.h.

Here is the call graph for this function:

Member Data Documentation

◆ equivalentExpressions

std::unordered_map<DataType, HashStorage> Brush::Simpl::Inexact_simplifier::equivalentExpressions
private

Definition at line 422 of file inexact.h.

◆ inputDim

int Brush::Simpl::Inexact_simplifier::inputDim = 1000

Definition at line 289 of file inexact.h.

◆ uniformPlanes

vector<MatrixXf> Brush::Simpl::Inexact_simplifier::uniformPlanes
private

Definition at line 424 of file inexact.h.


The documentation for this class was generated from the following files: