#ifndef MLPP_HIDDEN_LAYER_H #define MLPP_HIDDEN_LAYER_H // // HiddenLayer.hpp // // Created by Marc Melikyan on 11/4/20. // #include "../activation/activation.h" #include #include #include class MLPPHiddenLayer { public: MLPPHiddenLayer(int n_hidden, std::string activation, std::vector> input, std::string weightInit, std::string reg, double lambda, double alpha); int n_hidden; std::string activation; std::vector> input; std::vector> weights; std::vector bias; std::vector> z; std::vector> a; std::map> (MLPPActivation::*)(std::vector>, bool)> activation_map; std::map (MLPPActivation::*)(std::vector, bool)> activationTest_map; std::vector z_test; std::vector a_test; std::vector> delta; // Regularization Params std::string reg; double lambda; /* Regularization Parameter */ double alpha; /* This is the controlling param for Elastic Net*/ std::string weightInit; void forwardPass(); void Test(std::vector x); }; #endif /* HiddenLayer_hpp */