Feat C++ API
A feature engineering automation tool
FT::Pop::Op::NodeFuzzyFixedSplit< T > Class Template Reference

#include <n_fuzzy_fixed_split.h>

Inheritance diagram for FT::Pop::Op::NodeFuzzyFixedSplit< T >:
Collaboration diagram for FT::Pop::Op::NodeFuzzyFixedSplit< T >:

Public Member Functions

 NodeFuzzyFixedSplit ()
 
void set_threshold (ArrayXf &x, VectorXf &y, bool classification)
 Uses a heuristic to set a splitting threshold. More...
 
float gain (const VectorXf &lsplit, const VectorXf &rsplit, bool classification=false, vector< float > unique_classes=vector< float >())
 returns the gain of a split More...
 
float gini_impurity_index (const VectorXf &classes, vector< float > uc)
 gini impurity of classes in classes More...
 
void evaluate (const Data &data, State &state)
 Evaluates the node and updates the state states. More...
 
void eval_eqn (State &state)
 Evaluates the node symbolically. More...
 
 NodeFuzzyFixedSplit ()
 
 NodeFuzzyFixedSplit ()
 
- Public Member Functions inherited from FT::Pop::Op::NodeTrain
bool isNodeTrain ()
 
- Public Member Functions inherited from FT::Pop::Op::Node
 Node ()
 
virtual ~Node ()
 
unsigned int total_arity ()
 
ArrayXf limited (ArrayXf x)
 limits node output to be between MIN_FLT and MAX_FLT More...
 
void eval_complexity (map< char, vector< unsigned int >> &cstate)
 evaluates complexity of this node in the context of its child nodes. More...
 
void eval_complexity_db (map< char, vector< string >> &cstate)
 evaluates complexity of this node in the context of its child nodes. More...
 
virtual bool isNodeDx ()
 check of node type More...
 
std::unique_ptr< Nodeclone () const
 makes a unique copy of this node More...
 
std::unique_ptr< Nodernd_clone () const
 makes a randomized unique copy ofnode More...
 

Public Attributes

float threshold
 
bool threshold_set
 
- Public Attributes inherited from FT::Pop::Op::NodeTrain
bool train
 
- Public Attributes inherited from FT::Pop::Op::Node
string name
 node type More...
 
string variable_name
 variable name, if any More...
 
char otype
 output type More...
 
std::map< char, unsigned int > arity
 arity of the operator More...
 
int complexity
 complexity of node More...
 
int visits = 0
 

Protected Member Functions

NodeFuzzyFixedSplitclone_impl () const override
 
NodeFuzzyFixedSplitrnd_clone_impl () const override
 

Detailed Description

template<class T>
class FT::Pop::Op::NodeFuzzyFixedSplit< T >

Definition at line 15 of file n_fuzzy_fixed_split.h.

Constructor & Destructor Documentation

◆ NodeFuzzyFixedSplit() [1/3]

◆ NodeFuzzyFixedSplit() [2/3]

◆ NodeFuzzyFixedSplit() [3/3]

Member Function Documentation

◆ clone_impl()

template<class T >
NodeFuzzyFixedSplit< T > * FT::Pop::Op::NodeFuzzyFixedSplit< T >::clone_impl
overrideprotectedvirtual

Implements FT::Pop::Op::Node.

Definition at line 104 of file n_fuzzy_fixed_split.cc.

◆ eval_eqn()

template<class T >
void FT::Pop::Op::NodeFuzzyFixedSplit< T >::eval_eqn ( State state)
virtual

Evaluates the node symbolically.

Implements FT::Pop::Op::Node.

Definition at line 93 of file n_fuzzy_fixed_split.cc.

◆ evaluate()

template<class T >
void FT::Pop::Op::NodeFuzzyFixedSplit< T >::evaluate ( const Data data,
State state 
)
virtual

Evaluates the node and updates the state states.

Implements FT::Pop::Op::Node.

Definition at line 39 of file n_fuzzy_fixed_split.cc.

◆ gain()

template<class T >
float FT::Pop::Op::NodeFuzzyFixedSplit< T >::gain ( const VectorXf &  lsplit,
const VectorXf &  rsplit,
bool  classification = false,
vector< float >  unique_classes = vector<float>() 
)

returns the gain of a split

Definition at line 217 of file n_fuzzy_fixed_split.cc.

◆ gini_impurity_index()

template<class T >
float FT::Pop::Op::NodeFuzzyFixedSplit< T >::gini_impurity_index ( const VectorXf &  classes,
vector< float >  uc 
)

gini impurity of classes in classes

Definition at line 243 of file n_fuzzy_fixed_split.cc.

◆ rnd_clone_impl()

template<class T >
NodeFuzzyFixedSplit< T > * FT::Pop::Op::NodeFuzzyFixedSplit< T >::rnd_clone_impl
overrideprotectedvirtual

Implements FT::Pop::Op::Node.

Definition at line 108 of file n_fuzzy_fixed_split.cc.

◆ set_threshold()

template<class T >
void FT::Pop::Op::NodeFuzzyFixedSplit< T >::set_threshold ( ArrayXf &  x,
VectorXf &  y,
bool  classification 
)

Uses a heuristic to set a splitting threshold.

Definition at line 112 of file n_fuzzy_fixed_split.cc.

Member Data Documentation

◆ threshold

template<class T >
float FT::Pop::Op::NodeFuzzyFixedSplit< T >::threshold

Definition at line 19 of file n_fuzzy_fixed_split.h.

◆ threshold_set

template<class T >
bool FT::Pop::Op::NodeFuzzyFixedSplit< T >::threshold_set

Definition at line 20 of file n_fuzzy_fixed_split.h.


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