From 02f0c8eac71039af9ec99b340f4de035820cf67e Mon Sep 17 00:00:00 2001 From: LeLeLeLeto Date: Tue, 31 Dec 2024 01:15:20 +0100 Subject: [PATCH] Attributes to public and removed learning rate in layer --- layer.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/layer.h b/layer.h index da5a810..5563ebe 100644 --- a/layer.h +++ b/layer.h @@ -5,19 +5,16 @@ #define assertm(exp, msg) assert((void(msg), exp)) class Layer { - private: + public: Matrix input; Matrix weights; Matrix raw_output; Matrix activated_output; Matrix biases; - float learning_rate = 0.1; - static inline float Sigmoid(float); static inline float SigmoidPrime(float); - public: inline Layer(int); // Number of neurons inline void Forward(); // Forward Pass with sigmoid