A simple neural network library
Project description
sweet-perceptron
This is a simple neural network library.
The model of NN is configurable multilayer Perceptron (MLP).
It was built only using NumPy.
Installation
Use the package manager pip to install sweet-perceptron.
pip install sweet-perceptron
Usage
from perceptron import NeuralNetwork
from perceptron.Neuron import functions
# Initialize network
nw = NeuralNetwork((2, 4, 1))
# Change activation functions
nw.activation_funcs = functions.relu, functions.tanh
# Initialize weights
nw.initialize_weights()
# Train netwotk and get list with losses
loss = nw.train(50, ['train inputs set'], ['train outputs set'])
# Get output of forward propagation
output = nw.forward(['input'])
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
sweet-perceptron-1.0.1.tar.gz
(6.6 kB
view hashes)
Built Distribution
Close
Hashes for sweet_perceptron-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 768b106e0d770faa988f6393c4da0adccef3ed7aeef8a62813c5bd4b0fc660b0 |
|
MD5 | 32120695375396cf20bcf66919aa4740 |
|
BLAKE2b-256 | 0bb5ea21cabbd3064c40af759190ad89d502ffbf6b972caf3abd4b75d755de0c |