|
| | FullyConnectedLayer () |
| | A constructor for fully connected layer, initializes weights and biases with random values, and changes with zeros.
|
| |
| vectorOut | forward (vectorIn input) override |
| | A function defining moving foraward in neural network.
|
| |
| vectorIn | backward (vectorOut error) override |
| | A backtrack for backpropagation algorithm.
|
| |
| void | fit (float_t learning_rate) override |
| | A function that updates weights and biases.
|
| |
| bool | tryConvertToONNX (onnx::GraphProto *graph, std::string input, std::string output) const override |
| | A function that tries to convert the layer to ONNX format, returns true if successful, false otherwise.
|
| |
| std::string | str () const override |
| | Returns a string representation of the layer.
|
| |
| Eigen::Matrix< float_t, out, in > | weights () |
| |
| Eigen::Matrix< float_t, in, 1 > | bias () |
| |
| std::size_t | getIn () const |
| |
| std::size_t | getOut () const |
| |
| virtual | ~Layer ()=default |
| |
template<std::size_t in, std::size_t out>
class mlask::FullyConnectedLayer< in, out >
Class representing fully connected layer.
Meaning a layer with in number of neurons as an input and out number of neurons as an output,
where all the neurons are connected with each other.
- Template Parameters
-
| in | The number of neurons in the input |
| out | The number of neurons in the output |