Feat C++ API
A feature engineering automation tool
|
#include <n_fuzzy_split.h>
Public Member Functions | |
NodeFuzzySplit () | |
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... | |
NodeFuzzySplit () | |
NodeFuzzySplit () | |
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< Node > | clone () const |
makes a unique copy of this node More... | |
std::unique_ptr< Node > | rnd_clone () const |
makes a randomized unique copy ofnode More... | |
Public Attributes | |
float | threshold |
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 | |
NodeFuzzySplit * | clone_impl () const override |
NodeFuzzySplit * | rnd_clone_impl () const override |
Definition at line 15 of file n_fuzzy_split.h.
FT::Pop::Op::NodeFuzzySplit< T >::NodeFuzzySplit | ( | ) |
FT::Pop::Op::NodeFuzzySplit< float >::NodeFuzzySplit | ( | ) |
Definition at line 13 of file n_fuzzy_split.cc.
FT::Pop::Op::NodeFuzzySplit< int >::NodeFuzzySplit | ( | ) |
Definition at line 24 of file n_fuzzy_split.cc.
|
overrideprotectedvirtual |
Implements FT::Pop::Op::Node.
Definition at line 95 of file n_fuzzy_split.cc.
|
virtual |
Evaluates the node symbolically.
Implements FT::Pop::Op::Node.
Definition at line 84 of file n_fuzzy_split.cc.
|
virtual |
Evaluates the node and updates the state states.
Implements FT::Pop::Op::Node.
Definition at line 36 of file n_fuzzy_split.cc.
float FT::Pop::Op::NodeFuzzySplit< 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 201 of file n_fuzzy_split.cc.
float FT::Pop::Op::NodeFuzzySplit< T >::gini_impurity_index | ( | const VectorXf & | classes, |
vector< float > | uc | ||
) |
gini impurity of classes in classes
Definition at line 227 of file n_fuzzy_split.cc.
|
overrideprotectedvirtual |
Implements FT::Pop::Op::Node.
Definition at line 99 of file n_fuzzy_split.cc.
void FT::Pop::Op::NodeFuzzySplit< T >::set_threshold | ( | ArrayXf & | x, |
VectorXf & | y, | ||
bool | classification | ||
) |
Uses a heuristic to set a splitting threshold.
Definition at line 103 of file n_fuzzy_split.cc.
float FT::Pop::Op::NodeFuzzySplit< T >::threshold |
Definition at line 19 of file n_fuzzy_split.h.