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
Release history Release notifications | RSS feed
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.1.tar.gz
(2.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyainetwork-0.3.1.tar.gz.
File metadata
- Download URL: pyainetwork-0.3.1.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1db0e945601c3cc9698c69eaa04a9b438040692cf467ff7086c15083c1e0da90
|
|
| MD5 |
09c5ea075fdb199e799618b8bdf2dd8b
|
|
| BLAKE2b-256 |
b52d3366c6e79c560876d6795aba6776d71f56d6037b0340f57d6657860dc5b7
|
File details
Details for the file pyainetwork-0.3.1-py3-none-any.whl.
File metadata
- Download URL: pyainetwork-0.3.1-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
489f1a435aaf95d422f09c8506347a31d192e7d3f8503fce05e62869938cc8df
|
|
| MD5 |
aad052442d4ceb7b30c468daa1d0ee3a
|
|
| BLAKE2b-256 |
bd85a9b3d5bb2049dd82bbbb0d661493fddf9a26891bc4b37492d28cbc279d7c
|