Skip to main content

A simple Python library for creating neural networks

Project description

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

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.1.5.tar.gz (2.3 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.1.5-py3-none-any.whl (2.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pyainetwork-0.1.5.tar.gz
Algorithm Hash digest
SHA256 3479f69224f7dc6dcb7e7c4f85fc447b8e123eb4bc7a8fc8c9b35e46c005781b
MD5 ad5bb28798389e684943f242929aa462
BLAKE2b-256 2cae8d3bbba72a98c105b4d08a8b0e9a177f725fc6370abec5fb095d70a58515

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyainetwork-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 2.4 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.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 d5d3e6bbb41f04a76fc1bb4b974be904fb4e5d6fc716d31fea7b240b41722e7a
MD5 63f086c6dc2b85b47ec98625805a6bd4
BLAKE2b-256 548012555e9b95366682f702299cc6e0f2feb0deb23fadbd2a3f85700762a5f4

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