Feat C++ API
A feature engineering automation tool
n_2dgaussian.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_2DGAUSSIAN
6 #define NODE_2DGAUSSIAN
7 
8 #include <numeric>
9 
10 #include "../n_Dx.h"
11 
12 namespace FT{
13 
14  namespace Pop{
15  namespace Op{
16  class Node2dGaussian : public NodeDx
17  {
18  public:
19 
20  Node2dGaussian(vector<float> W0 = vector<float>());
21 
23  void evaluate(const Data& data, State& state);
24 
26  void eval_eqn(State& state);
27 
28  ArrayXf getDerivative(Trace& state, int loc);
29 
30  protected:
31  Node2dGaussian* clone_impl() const override;
32 
33  Node2dGaussian* rnd_clone_impl() const override;
34 
35  };
36  }
37  }
38 }
39 
40 #endif
data holding X, y, and Z data
Definition: data.h:42
Node2dGaussian * clone_impl() const override
Definition: n_2dgaussian.cc:84
Node2dGaussian * rnd_clone_impl() const override
Definition: n_2dgaussian.cc:86
Node2dGaussian(vector< float > W0=vector< float >())
Definition: n_2dgaussian.cc:14
void evaluate(const Data &data, State &state)
Evaluates the node and updates the state states.
Definition: n_2dgaussian.cc:33
ArrayXf getDerivative(Trace &state, int loc)
Definition: n_2dgaussian.cc:71
void eval_eqn(State &state)
Evaluates the node symbolically.
Definition: n_2dgaussian.cc:66
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