Feat C++ API
A feature engineering automation tool
n_constant.h
Go to the documentation of this file.
1 /* FEAT
2 copyright 2017 William La Cava
3 license: GNU/GPL v3
4 */
5 #ifndef NODE_CONSTANT
6 #define NODE_CONSTANT
7 
8 #include "../node.h"
9 
10 namespace FT{
11 
12 namespace Pop{
13 namespace Op{
14 class NodeConstant : public Node
15 {
16  public:
17 
18  float d_value;
19  bool b_value;
20 
22 
24  NodeConstant(bool& v);
25 
27  NodeConstant(const float& v);
28 
30  void evaluate(const Data& data, State& state);
31 
33  void eval_eqn(State& state);
34 
35  // Make the derivative 1
36 
37  protected:
38  NodeConstant* clone_impl() const override;
39 
40  NodeConstant* rnd_clone_impl() const override;
41 };
42 // serialization
44  visits, d_value, b_value)
45 } // Op
46 } // Pop
47 } // FT
48 
49 #endif
data holding X, y, and Z data
Definition: data.h:42
NodeConstant * rnd_clone_impl() const override
Definition: n_constant.cc:65
NodeConstant * clone_impl() const override
Definition: n_constant.cc:63
void evaluate(const Data &data, State &state)
Evaluates the node and updates the state states.
Definition: n_constant.cc:32
float d_value
value, for k and x types
Definition: n_constant.h:18
void eval_eqn(State &state)
Evaluates the node symbolically.
Definition: n_constant.cc:55
Represents nodes in a program.
Definition: node.h:54
NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE(NodeFuzzyFixedSplit< float >, name, otype, arity, complexity, visits, train, threshold, threshold_set) NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE(NodeFuzzyFixedSplit< int >
main Feat namespace
Definition: data.cc:13
contains various types of State actually used by feat
Definition: state.h:102