Skip to main content

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)

Source distribution for pynetworklib 1.0.1
File Size Uploaded
pynetworklib-1.0.1.tar.gz 1.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pynetworklib 1.0.1
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page