Attributes to public and removed learning rate in layer
This commit is contained in:
5
layer.h
5
layer.h
@ -5,19 +5,16 @@
|
|||||||
#define assertm(exp, msg) assert((void(msg), exp))
|
#define assertm(exp, msg) assert((void(msg), exp))
|
||||||
|
|
||||||
class Layer {
|
class Layer {
|
||||||
private:
|
public:
|
||||||
Matrix input;
|
Matrix input;
|
||||||
Matrix weights;
|
Matrix weights;
|
||||||
Matrix raw_output;
|
Matrix raw_output;
|
||||||
Matrix activated_output;
|
Matrix activated_output;
|
||||||
Matrix biases;
|
Matrix biases;
|
||||||
|
|
||||||
float learning_rate = 0.1;
|
|
||||||
|
|
||||||
static inline float Sigmoid(float);
|
static inline float Sigmoid(float);
|
||||||
static inline float SigmoidPrime(float);
|
static inline float SigmoidPrime(float);
|
||||||
|
|
||||||
public:
|
|
||||||
inline Layer(int); // Number of neurons
|
inline Layer(int); // Number of neurons
|
||||||
|
|
||||||
inline void Forward(); // Forward Pass with sigmoid
|
inline void Forward(); // Forward Pass with sigmoid
|
||||||
|
Reference in New Issue
Block a user