General purpose multilayered perceptron model for machine learning. This project does not include a user interface and is intended to be integrated into other software.
Contributions are welcome.
Clone the repository and install dependencies
$ git clone git@github.com:vainiovesa/neural-network.git
$ cd neural-network
$ poetry installUsage in code
from network import Network
from activation_functions import sigmoid, sigmoid_derivative
from loss_functions import quadratic, quadratic_derivative
layers = [2, 3, 1]
activation_f = [sigmoid, sigmoid]
activation_fd = [sigmoid_derivative, sigmoid_derivative]
loss_f = quadratic
loss_fd = quadratic_derivative
net = Network(layers, activation_f, activation_fd, loss_f, loss_fd)