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)

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.2.tar.gz (2.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.3.2-py3-none-any.whl (2.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyainetwork-0.3.2.tar.gz
  • Upload date:
  • Size: 2.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.3.2.tar.gz
Algorithm Hash digest
SHA256 ce0fcaffa21304638405f49d731a486b5f9a79de467e5501141240e6573ea732
MD5 cc0c703238d68b7f54e5e94e12d21188
BLAKE2b-256 2f14ced1ff8477a8239ce38876bb1273ba63cd958b602386bad99880489b7a4c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyainetwork-0.3.2-py3-none-any.whl
  • Upload date:
  • Size: 2.6 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a039792fd49ab6ec0054d58833008265f7d232b67cc52b0137ad498e719af62c
MD5 84ecc73f8ceba3201d296fc082190b8a
BLAKE2b-256 e2450cd4b7d76630efea332308f1cd47456eee6345d218772c869aea06308523

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