Feat C++ API
A feature engineering automation tool
n_multiply.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_MULTIPLY
6 #define NODE_MULTIPLY
7 
8 #include "../n_Dx.h"
9 
10 namespace FT{
11 
12  namespace Pop{
13  namespace Op{
14  class NodeMultiply : public NodeDx
15  {
16  public:
17 
18  NodeMultiply(vector<float> W0 = vector<float>());
19 
21  void evaluate(const Data& data, State& state);
22 
24  void eval_eqn(State& state);
25 
26  ArrayXf getDerivative(Trace& state, int loc);
27 
28  protected:
29  NodeMultiply* clone_impl() const override;
30 
31  NodeMultiply* rnd_clone_impl() const override;
32  };
33  }
34  }
35 }
36 
37 #endif
data holding X, y, and Z data
Definition: data.h:42
void evaluate(const Data &data, State &state)
Evaluates the node and updates the state states.
Definition: n_multiply.cc:30
NodeMultiply(vector< float > W0=vector< float >())
Definition: n_multiply.cc:11
ArrayXf getDerivative(Trace &state, int loc)
Definition: n_multiply.cc:51
NodeMultiply * rnd_clone_impl() const override
Definition: n_multiply.cc:71
void eval_eqn(State &state)
Evaluates the node symbolically.
Definition: n_multiply.cc:45
NodeMultiply * clone_impl() const override
Definition: n_multiply.cc:69
main Feat namespace
Definition: data.cc:13
contains various types of State actually used by feat
Definition: state.h:102
used for tracing stack outputs for backprop algorithm.
Definition: state.h:232