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
21
NodeConstant
();
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
43
NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE
(
NodeConstant
,
name
,
otype
,
arity
,
complexity
,
44
visits
, d_value, b_value)
45
}
// Op
46
}
// Pop
47
}
// FT
48
49
#endif
FT::Dat::Data
data holding X, y, and Z data
Definition:
data.h:42
FT::Pop::Op::NodeConstant
Definition:
n_constant.h:15
FT::Pop::Op::NodeConstant::rnd_clone_impl
NodeConstant * rnd_clone_impl() const override
Definition:
n_constant.cc:65
FT::Pop::Op::NodeConstant::clone_impl
NodeConstant * clone_impl() const override
Definition:
n_constant.cc:63
FT::Pop::Op::NodeConstant::evaluate
void evaluate(const Data &data, State &state)
Evaluates the node and updates the state states.
Definition:
n_constant.cc:32
FT::Pop::Op::NodeConstant::NodeConstant
NodeConstant()
FT::Pop::Op::NodeConstant::d_value
float d_value
value, for k and x types
Definition:
n_constant.h:18
FT::Pop::Op::NodeConstant::b_value
bool b_value
Definition:
n_constant.h:19
FT::Pop::Op::NodeConstant::eval_eqn
void eval_eqn(State &state)
Evaluates the node symbolically.
Definition:
n_constant.cc:55
FT::Pop::Op::Node
Represents nodes in a program.
Definition:
node.h:54
FT::Pop::Op::arity
arity
Definition:
n_fuzzy_fixed_split.h:50
FT::Pop::Op::otype
otype
Definition:
n_fuzzy_fixed_split.h:50
FT::Pop::Op::complexity
complexity
Definition:
n_fuzzy_fixed_split.h:51
FT::Pop::Op::visits
visits
Definition:
n_fuzzy_fixed_split.h:51
FT::Pop::Op::NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE
NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE(NodeFuzzyFixedSplit< float >, name, otype, arity, complexity, visits, train, threshold, threshold_set) NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE(NodeFuzzyFixedSplit< int >
FT::Pop::Op::name
name
Definition:
n_fuzzy_fixed_split.h:50
FT
main Feat namespace
Definition:
data.cc:13
FT::Dat::State
contains various types of State actually used by feat
Definition:
state.h:102
src
pop
op
terminals
n_constant.h
Generated by
1.9.1