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))
|
||||
|
||||
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
|
||||
|
Reference in New Issue
Block a user