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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sweet-perceptron-1.0.1.tar.gz.
File metadata
- Download URL: sweet-perceptron-1.0.1.tar.gz
- Upload date:
- Size: 6.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.10.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f242e7ac753bf1348776617e4df7f28db9edb825e4311f4ecf80d2339f4c1b73
|
|
| MD5 |
361b0261cccba999c91589ede0582f22
|
|
| BLAKE2b-256 |
8d5b74ca1e461a85808639715afadce54b1940c4f40900f6241ed4dae00dcaf9
|
File details
Details for the file sweet_perceptron-1.0.1-py3-none-any.whl.
File metadata
- Download URL: sweet_perceptron-1.0.1-py3-none-any.whl
- Upload date:
- Size: 7.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.10.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
768b106e0d770faa988f6393c4da0adccef3ed7aeef8a62813c5bd4b0fc660b0
|
|
| MD5 |
32120695375396cf20bcf66919aa4740
|
|
| BLAKE2b-256 |
0bb5ea21cabbd3064c40af759190ad89d502ffbf6b972caf3abd4b75d755de0c
|