Feat C++ API
A feature engineering automation tool
FT::Pop::Op::NodeConstant Class Reference

#include <n_constant.h>

Inheritance diagram for FT::Pop::Op::NodeConstant:
Collaboration diagram for FT::Pop::Op::NodeConstant:

Public Member Functions

 NodeConstant ()
 
 NodeConstant (bool &v)
 declares a boolean constant More...
 
 NodeConstant (const float &v)
 declares a float constant 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...
 
- 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...
 
virtual bool isNodeTrain ()
 
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 d_value
 value, for k and x types More...
 
bool b_value
 
- 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

NodeConstantclone_impl () const override
 
NodeConstantrnd_clone_impl () const override
 

Detailed Description

Definition at line 14 of file n_constant.h.

Constructor & Destructor Documentation

◆ NodeConstant() [1/3]

FT::Pop::Op::NodeConstant::NodeConstant ( )

◆ NodeConstant() [2/3]

FT::Pop::Op::NodeConstant::NodeConstant ( bool &  v)

declares a boolean constant

Definition at line 13 of file n_constant.cc.

◆ NodeConstant() [3/3]

FT::Pop::Op::NodeConstant::NodeConstant ( const float &  v)

declares a float constant

Definition at line 22 of file n_constant.cc.

Member Function Documentation

◆ clone_impl()

NodeConstant * FT::Pop::Op::NodeConstant::clone_impl ( ) const
overrideprotectedvirtual

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

Definition at line 63 of file n_constant.cc.

◆ eval_eqn()

void FT::Pop::Op::NodeConstant::eval_eqn ( State state)
virtual

Evaluates the node symbolically.

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

Definition at line 55 of file n_constant.cc.

◆ evaluate()

void FT::Pop::Op::NodeConstant::evaluate ( const Data data,
State state 
)
virtual

Evaluates the node and updates the state states.

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

Definition at line 32 of file n_constant.cc.

◆ rnd_clone_impl()

NodeConstant * FT::Pop::Op::NodeConstant::rnd_clone_impl ( ) const
overrideprotectedvirtual

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

Definition at line 65 of file n_constant.cc.

Member Data Documentation

◆ b_value

bool FT::Pop::Op::NodeConstant::b_value

Definition at line 19 of file n_constant.h.

◆ d_value

float FT::Pop::Op::NodeConstant::d_value

value, for k and x types

Definition at line 18 of file n_constant.h.


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