Skip to main content

PyAiNetwork

PyAiNetwork is an open-source Python library for creating and training neural networks with simple and beginner-friendly code.

Install:

pip install PyAiNetwork

About

PyAiNetwork is designed to make neural network development simple.

Instead of writing hundreds of lines of code for neurons, layers, weights, and training, you can create a neural network with just a few commands.

The library is suitable for:

  • Learning how neural networks work
  • Creating simple AI projects
  • Experimenting with custom network architectures
  • Building your own AI systems

Developers

Eyes Studio

Eyes Studio is an independent software developer focused on AI tools and open-source projects.


Features

  • ✅ Simple neural network API
  • ✅ Multiple hidden layers
  • ✅ GELU activation
  • ✅ ReLU activation
  • ✅ Sigmoid activation
  • ✅ Built-in training
  • ✅ Lightweight implementation
  • ✅ Pure Python
  • ✅ Open Source

Installation

Install from PyPI:

pip install PyAiNetwork

Import:

from PyAiNetwork import Network

Quick Start

Create your first neural network.

from PyAiNetwork import Network

net = Network(
    2,  # input neurons
    2,  # hidden layers
    4,  # neurons in every hidden layer
    1   # output neurons
)

result = net.forward([0.5, 1.0])

print(result)

Training

Example:

from PyAiNetwork import Network

net = Network(2,1,4,1)

for i in range(100):
    net.train(
        [1,0],
        [1]
    )

print(net.forward([1,0]))

Activation Functions

PyAiNetwork currently supports:

activition="gelu"
activition="relu"
activition="sigmoid"

Example:

net = Network(
    2,
    2,
    8,
    1,
    activition="relu"
)

Network

Simple neural network.

Constructor:

Network(
    input_neorons,
    layers,
    neorons_on_layer,
    output_neorons,
    activition="gelu"
)

Parameters:

Parameter Description
input_neorons Number of input neurons
layers Number of hidden layers
neorons_on_layer Neurons in every hidden layer
output_neorons Number of output neurons
activition Activation function

ProfNetwork

Advanced neural network.

Unlike Network, every hidden layer can have a different number of neurons.

Example:

from PyAiNetwork import ProfNetwork

net = ProfNetwork(
    2,
    [8,16,8],
    1
)

Architecture:

2 → 8 → 16 → 8 → 1

Constructor:

ProfNetwork(
    input_neorons,
    layers_neorons,
    output_neorons,
    activition="gelu"
)

Example:

net = ProfNetwork(
    3,
    [32,64,64,32],
    5
)

Roadmap

Future versions may include:

  • Adam optimizer
  • Model saving/loading
  • Batch training
  • More activation functions
  • Loss functions
  • Better performance
  • More neural network types

License

MIT License

Copyright (c) 2026 Eyes Studio

GitHub

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

Metadata

Release files for PyAiNetwork 0.1.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for PyAiNetwork 0.1.7
File Size Uploaded Provenance Actions
pyainetwork-0.1.7.tar.gz 2.3 kB Without provenance Details for pyainetwork-0.1.7.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for PyAiNetwork 0.1.7
File Interpreter ABI Platform Actions
pyainetwork-0.1.7-py3-none-any.whl Python 3 none any Details for pyainetwork-0.1.7-py3-none-any.whl

Total release size: 4.8 kB

Release files / pyainetwork-0.1.7.tar.gz

Download URL pyainetwork-0.1.7.tar.gz
Size 2.3 kB
Tags Source
SHA-256 checksum
How to use checksums
0075ca06f7f3110475624fc084f65f972647f204aec8ff9a7352fb943b70539c
BLAKE2b-256 checksum
How to use checksums
da5dd6e1ae3d03216dce0da65c6df6447dfea3f4b4633901a46acf0aabe2866c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.10

Release files / pyainetwork-0.1.7-py3-none-any.whl

Download URL pyainetwork-0.1.7-py3-none-any.whl
Size 2.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e399661a7ede8121ee2763bb3b803703943b7252f1f2602b8de671e4d7208c73
BLAKE2b-256 checksum
How to use checksums
1a94492bbfbc454078c5b6bc0bccb7c6f94cb596d52c2524e0db67165a4c09c0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.10

Security for PyAiNetwork 0.1.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page