PyNetworkLib
This is an INDEV version of a multi-layer perception network written in Python
It is designed to be used as a library, it has a network module that provides trainable dense multilayer perceptron networks, a configuration module that provides a way to store parameters for training and optimization, and an optimization module that creates an optimized network structure and hyperparameters for a given dataset
Installation of the library
pip install pynetworklib
Example of how to use this library
from network import network
from network import dense
from network import activation_functions
from network import mse
import numpy as np
# Create a network with a struct of 3 layers of size 2, 3, and 1
input_size = 2
output_size = 1
network_xor = network.Network([dense.Dense(2,3), activation_functions.Tanh(),
dense.Dense(3,1), activation_functions.Tanh()],
input_size, output_size)
# Create a data set, this example uses the xor operation as the training output
x_train = [
np.array([1,1]),
np.array([0,1]),
np.array([1,0]),
np.array([0,0])
]
y_train = [0,1,1,0]
network_xor.fit(mse.MeanSquaredError(), x_train, y_train, epoachs = 10, verbose = True)
Metadata
Release files for pynetworklib 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pynetworklib-1.0.1.tar.gz | 1.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pynetworklib-1.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 3.1 kB
Release files / pynetworklib-1.0.1.tar.gz
| Download URL | pynetworklib-1.0.1.tar.gz |
|---|---|
| Size | 1.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f18a48b8f8818b057cc4d50fa1afb2bbb8dacb4ef09ce16978b9b7132895c967
|
|
BLAKE2b-256 checksum How to use checksums |
8f622ea5179770c2069a6b55ac22f3cc039fd538d49a38efb75b7e658f87546c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.3
|
Release files / pynetworklib-1.0.1-py3-none-any.whl
| Download URL | pynetworklib-1.0.1-py3-none-any.whl |
|---|---|
| Size | 1.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3a5b3aaa8f35a627ba0e43ec6330a54933fcebcd882bfa836656fb3e86b9aff8
|
|
BLAKE2b-256 checksum How to use checksums |
076a34bf1a7d11daffbf25f76b01c216a7581acaa9c08b1ef4e7b4ea3782c687
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.3
|