Skip to main content

A simple library for makeing dense multilayer neural networks

Project description

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)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pynetworklib-1.0.1.tar.gz (1.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pynetworklib-1.0.1-py3-none-any.whl (1.6 kB view details)

Uploaded Python 3

File details

Details for the file pynetworklib-1.0.1.tar.gz.

File metadata

  • Download URL: pynetworklib-1.0.1.tar.gz
  • Upload date:
  • Size: 1.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for pynetworklib-1.0.1.tar.gz
Algorithm Hash digest
SHA256 f18a48b8f8818b057cc4d50fa1afb2bbb8dacb4ef09ce16978b9b7132895c967
MD5 c2c13b74ca0a0f422d840a44f5b8e53a
BLAKE2b-256 8f622ea5179770c2069a6b55ac22f3cc039fd538d49a38efb75b7e658f87546c

See more details on using hashes here.

File details

Details for the file pynetworklib-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: pynetworklib-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 1.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for pynetworklib-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3a5b3aaa8f35a627ba0e43ec6330a54933fcebcd882bfa836656fb3e86b9aff8
MD5 edce4df7708ea1e706a8950ba2760ae0
BLAKE2b-256 076a34bf1a7d11daffbf25f76b01c216a7581acaa9c08b1ef4e7b4ea3782c687

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page