#ifndef MLPP_OUTPUT_LAYER_H #define MLPP_OUTPUT_LAYER_H // // OutputLayer.hpp // // Created by Marc Melikyan on 11/4/20. // #include "../activation/activation.h" #include "../cost/cost.h" #include #include #include class MLPPOutputLayer { public: MLPPOutputLayer(int n_hidden, std::string activation, std::string cost, std::vector> input, std::string weightInit, std::string reg, double lambda, double alpha); int n_hidden; std::string activation; std::string cost; std::vector> input; std::vector weights; double bias; std::vector z; std::vector a; std::map (MLPPActivation::*)(std::vector, bool)> activation_map; std::map activationTest_map; std::map, std::vector)> cost_map; std::map (MLPPCost::*)(std::vector, std::vector)> costDeriv_map; double z_test; double 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 /* OutputLayer_hpp */