Skip to main content

A simple Python library for creating neural networks

Project description

PyAiNetwork

PyAiNetork - this is a lightweight library to create small to medium-sized LM's.


Main functions

  • Creating neural networks
  • neural network training
  • learning and counting through numpy tables

Installation

pip install PyAiNetwork

examples of use normal

from PyAiNetwork import Network

net = Network(
    4, #input 
    1, #layers
    1, #neorons on layer
    4 #output
    'gelu' #activition function
)

input = [0.2,0.4,0.6,0.8]

output = net.forward(input)
print(output)

for i in range(1000):
    net.train(
        input, #input
        input, #output
        0.01 #learing rate
    )

output = net.forward(input)
print(output)

examples of use profi

from PyAiNetwork import ProfNetwork

layers_neorons = [1]

net = ProfNetwork(
    4, #input 
    layers_neorons, #layers
    4 #output
    'gelu' #activition function
    'matrix' # math type (or every)
)

input = [0.2,0.4,0.6,0.8]

output = net.forward(input)
print(output)

for i in range(1000):
    net.train(
        input, #input
        input, #output
        0.01 #learing rate
    )

output = net.forward(input)
print(output)

GitHub

https://github.com/eyes-studio/PyAiNetwork


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

pyainetwork-0.2.3.tar.gz (1.6 kB view details)

Uploaded Source

Built Distribution

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

pyainetwork-0.2.3-py3-none-any.whl (1.8 kB view details)

Uploaded Python 3

File details

Details for the file pyainetwork-0.2.3.tar.gz.

File metadata

  • Download URL: pyainetwork-0.2.3.tar.gz
  • Upload date:
  • Size: 1.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for pyainetwork-0.2.3.tar.gz
Algorithm Hash digest
SHA256 f7e66968938d45af724b6468f4119ca93560b74a390f4a84cbe866ced3ff79ef
MD5 27a733448b710e18d02db8b784ae9008
BLAKE2b-256 82cf469d9915a2c868aa3aaceb84f746aa5b6e86f12fe3f97397d167ba2a7462

See more details on using hashes here.

File details

Details for the file pyainetwork-0.2.3-py3-none-any.whl.

File metadata

  • Download URL: pyainetwork-0.2.3-py3-none-any.whl
  • Upload date:
  • Size: 1.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for pyainetwork-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 4939c6b19cf9dfec40d7c5e6b6244e2c408615103801f9a11ffdf415021c62b2
MD5 88ef0e087d3e39f03d5c30a167406ef2
BLAKE2b-256 83b67cb9aa866778dbe1140a7a22f9e18ba9253df9bba1f6f7705a5cfd4ed0c4

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