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

#include <n_variable.h>

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

Public Member Functions

 NodeVariable (const size_t &l, char ntype='f', std::string n="")
 
 NodeVariable ()
 
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

size_t loc
 column location in X, for x types More...
 
- 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

NodeVariableclone_impl () const override
 
NodeVariablernd_clone_impl () const override
 

Detailed Description

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

Definition at line 15 of file n_variable.h.

Constructor & Destructor Documentation

◆ NodeVariable() [1/2]

template<class T >
FT::Pop::Op::NodeVariable< T >::NodeVariable ( const size_t &  l,
char  ntype = 'f',
std::string  n = "" 
)

Definition at line 22 of file n_variable.cc.

◆ NodeVariable() [2/2]

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

Definition at line 14 of file n_variable.cc.

Member Function Documentation

◆ clone_impl()

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

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

Definition at line 72 of file n_variable.cc.

◆ eval_eqn()

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

Evaluates the node symbolically.

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

Definition at line 66 of file n_variable.cc.

◆ evaluate()

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

Evaluates the node and updates the state states.

Evaluates the node and updates the state states.

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

Definition at line 37 of file n_variable.cc.

◆ rnd_clone_impl()

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

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

Definition at line 76 of file n_variable.cc.

Member Data Documentation

◆ loc

template<class T >
size_t FT::Pop::Op::NodeVariable< T >::loc

column location in X, for x types

Definition at line 18 of file n_variable.h.


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