Skip to main content

A simple Python library for creating neural networks

Project description

PyAiNetwork

A lightweight, open-source Python library for building and training neural networks with only a few lines of code.

Create AI models without writing hundreds of lines for neurons, layers, and weights.


Installation

pip install PyAiNetwork

Features

  • 🚀 Beginner-friendly API
  • 🧠 Standard Network
  • ⚡ Advanced ProfNetwork
  • 🔥 GELU activation
  • 🔥 ReLU activation
  • 🔥 Sigmoid activation
  • 📈 Built-in training
  • 🎯 Custom network architectures
  • 🪶 Lightweight & fast
  • 🐍 Pure Python
  • 💚 Open Source

Quick Start

from PyAiNetwork import Network

net = Network(
    2,      # Input neurons
    2,      # Hidden layers
    4,      # Neurons per hidden layer
    1       # Output neurons
)

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

print(result)

Training

from PyAiNetwork import Network

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

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

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

Activation Functions

PyAiNetwork supports multiple activation functions.

GELU

Network(..., activition="gelu")

ReLU

Network(..., activition="relu")

Sigmoid

Network(..., activition="sigmoid")

Network

Network creates a neural network where every hidden layer contains the same number of neurons.

Network(
    input_neurons,
    hidden_layers,
    neurons_per_layer,
    output_neurons,
    activition="gelu"
)

Example

net = Network(
    4,
    3,
    16,
    2
)

Architecture

4 → 16 → 16 → 16 → 2

ProfNetwork

ProfNetwork allows every hidden layer to have a different number of neurons.

from PyAiNetwork import ProfNetwork

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

Architecture

2 → 8 → 16 → 8 → 1

Another example

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

Which one should I use?

Class Best for
Network Simple projects and learning
ProfNetwork Custom architectures and larger AI models

Roadmap

Planned features for future releases

  • Adam Optimizer
  • Save / Load models
  • Batch training
  • More activation functions
  • More loss functions
  • Better performance
  • More neural network types
  • GPU support (planned)

About Eyes Studio

PyAiNetwork is developed by Eyes Studio, an independent software developer focused on AI technologies, developer tools, and open-source software.


License

MIT License

Copyright © 2026 Eyes Studio


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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pyainetwork-0.2.2.tar.gz
Algorithm Hash digest
SHA256 c7c0e3965e074165ff01c40acb1b5a0bce1d25dc6b9e281ffffd7c0ac61e39bb
MD5 0497756957f36af65dcf5ec8aec81532
BLAKE2b-256 609f7b896ba03afc2d4bc0654e42e24ba56114cce8d0d4358585be67fbb1a7ec

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyainetwork-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 2.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.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1ad14be0d9b3d910d309a208f483b37c8d3e30f189d7e3b0cc49b315458f8cf9
MD5 32742619d15debafee8225f51dbdde8b
BLAKE2b-256 17fa53b5d8241c9e302b4a3f433a8b28b4e584807937008df9631401d2de011e

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