Neural Network
Generic Neural Network for Classification
layer.h
Go to the documentation of this file.
1 
8 #ifndef LAYER_H
9 #define LAYER_H
10 
11 #include <vector>
12 #include <iostream>
13 #include <algorithm>
14 #include <random>
15 #include "linalg.h"
16 
22 class Layer {
23  public:
24  Layer(int _input_unit, int _output_unit);
25  inline friend std::ostream& operator<< (std::ostream &out, const Layer & layer) {
26  out << "_nodes is: " << std::endl;
27  out << *layer._nodes<< std::endl;
28  out << "_bias is: " << std::endl;
29  out << *layer._bias << std::endl;
30  return out;
31  }
32  matrix* _nodes;
33  vector* _bias;
34  private:
35  int _input_unit;
36  int _output_unit;
38  int _init_layer();
39 };
40 
41 #endif
represents a matrix between matrix and vector they are able to be casted into one another ...
Definition: linalg.h:49
Layer object the layer object contains nodes.
Definition: layer.h:22
File containing common linear algebra functions.
represents a vector padding is to make sure that matrix and vector both have the same byte size and a...
Definition: linalg.h:28