StraightforwardNeuralNetwork
StraightforwardNeuralNetwork copied to clipboard
A neural network lib in C++20 optimized for CPU. Create, train and use a neural network in less than 10 lines of codes.
https://github.com/MatthieuHernandez/StraightforwardNeuralNetwork/blob/50afbd964f382eb1571084d52c5f443c807054f9/src/neural_network/layer/neuron/BaseNeuron.hpp#L45C137-L45C137 ```cpp static_assert(BaseNeuron); ```
See https://en.cppreference.com/w/cpp/numeric/random
Precompute rest, some product, etc. All calculations that are the same for a given layer. See to create a Dimensional Layer class.
Use this line to parallelize the loop for in the layers: `#pragma omp parallel for num_threads(/*number of logical cores*/) schedule(runtime)`