Feat C++ API
A feature engineering automation tool
|
#include <n_fuzzy_fixed_split.h>
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< 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 |
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 | |
NodeFuzzyFixedSplit * | clone_impl () const override |
NodeFuzzyFixedSplit * | rnd_clone_impl () const override |
Definition at line 15 of file n_fuzzy_fixed_split.h.
FT::Pop::Op::NodeFuzzyFixedSplit< T >::NodeFuzzyFixedSplit | ( | ) |
FT::Pop::Op::NodeFuzzyFixedSplit< float >::NodeFuzzyFixedSplit | ( | ) |
Definition at line 13 of file n_fuzzy_fixed_split.cc.
FT::Pop::Op::NodeFuzzyFixedSplit< int >::NodeFuzzyFixedSplit | ( | ) |
Definition at line 26 of file n_fuzzy_fixed_split.cc.
|
overrideprotectedvirtual |
Implements FT::Pop::Op::Node.
Definition at line 104 of file n_fuzzy_fixed_split.cc.
|
virtual |
Evaluates the node symbolically.
Implements FT::Pop::Op::Node.
Definition at line 93 of file n_fuzzy_fixed_split.cc.
|
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.
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.
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.
|
overrideprotectedvirtual |
Implements FT::Pop::Op::Node.
Definition at line 108 of file n_fuzzy_fixed_split.cc.
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.
float FT::Pop::Op::NodeFuzzyFixedSplit< T >::threshold |
Definition at line 19 of file n_fuzzy_fixed_split.h.
bool FT::Pop::Op::NodeFuzzyFixedSplit< T >::threshold_set |
Definition at line 20 of file n_fuzzy_fixed_split.h.