Skip to main content

PyAiNetwork is a lightweight library for creating and training small to medium-sized 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)

net.save("save.json") #json file name

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

net2.load("save.json") #json file name

output = net2.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.3.6.tar.gz (5.1 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.3.6-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pyainetwork-0.3.6.tar.gz
Algorithm Hash digest
SHA256 7054bc69cff267e51bb7e1120db5f5a75a1375f68497825e3f46a58cb0d0d849
MD5 97ef9f4bcf2fea8072c8aba38f3af761
BLAKE2b-256 6f85882bad0beae263e3ace7733af4d7a6757c74bc18c5932f46f92c0be31f10

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyainetwork-0.3.6-py3-none-any.whl
  • Upload date:
  • Size: 5.5 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.3.6-py3-none-any.whl
Algorithm Hash digest
SHA256 86cc7ca44990980ca001f0b1f7f655cdf593aae672983c5be2aace7fb7be5284
MD5 debbd0519255eddb77416c3e3c7a0da2
BLAKE2b-256 36a02e09c6cacbea9a257f023ca926ccd7bad0ae390b009b4c675baab67b492f

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