Metadata-Version: 2.4
Name: evonet
Version: 0.1.0.dev26
Summary: Evolvable neural network core for integration with EvoLib
Author-email: EvoLib <evolib@dismail.de>
License: MIT License
        
        Copyright (c) 2025 EvoLib
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
        
Classifier: Development Status :: 3 - Alpha
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: numpy>=1.24
Requires-Dist: pyyaml>=6.0
Requires-Dist: pandas>=2.3.0
Requires-Dist: pydantic<3.0,>=2.7
Requires-Dist: graphviz>=0.20.1
Requires-Dist: matplotlib
Provides-Extra: dev
Requires-Dist: mypy; extra == "dev"
Requires-Dist: types-PyYAML; extra == "dev"
Provides-Extra: docs
Requires-Dist: sphinx; extra == "docs"
Requires-Dist: sphinx-rtd-theme; extra == "docs"
Requires-Dist: myst-parser; extra == "docs"
Dynamic: license-file

# EvoNet

[![Code Quality & Tests](https://github.com/EvoLib/evo-net/actions/workflows/ci.yml/badge.svg)](https://github.com/EvoLib/evo-net/actions/workflows/ci.yml)
[![License: MIT](https://img.shields.io/badge/license-MIT-green.svg)](LICENSE)
[![Project Status: Alpha](https://img.shields.io/badge/status-alpha-orange.svg)](https://github.com/EvoLib/evo-net)

**EvoNet** is a modular and evolvable neural network core designed for integration
with [EvoLib](https://github.com/EvoLib/evo-lib).  
It supports dynamic topologies, recurrent connections, per-neuron activation, and
structural evolution, with a strong emphasis on clarity and explicit behaviour.

---

## Scope

EvoNet is not a state-of-the-art or general-purpose deep learning framework.

It does not aim to compete with libraries such as PyTorch, TensorFlow, or JAX in terms
of performance, scalability, or training algorithms. Backpropagation, GPU acceleration,
and highly optimised tensor operations are outside the scope of this project.

Instead, EvoNet is designed for evolutionary algorithms, structural mutation, and
exploratory research, with a focus on transparent and explicit implementations rather
than performance optimisation or feature completeness.

EvoNet should be understood as a conceptual and experimental model, not as a
production-grade neural-network engine.

---

## Features

- **Explicit, layer-based topology** with support for skip connections, cycles,
  and recurrent paths
- **Typed neuron roles and connection types** (`NeuronRole`, `ConnectionType`)
- **Topology-aware mutation operations**:
  add/remove neurons and connections, mutate weights, change activations
- **Per-neuron activation functions**, configurable and evolvable
- **Explicit 1-step recurrent state model**, without iterative stabilisation passes
- **Runtime topology growth**, e.g. via `add_neuron` and `add_connection`
- **Debug-friendly architecture** with explicit neuron IDs, labels, roles,
  and directional graphs
- **Designed for evolutionary integration**, not gradient-based training
- **Lightweight and extensible**: pure Python, NumPy-based, no hard dependencies

---

> ⚠️ **Project status: Alpha**  
> Interfaces, APIs, and internal structure may change as the project evolves.

---

## Quick Example

```python
from evonet.core import Nnet

net = Nnet()
net.add_layer()  # Input layer
net.add_layer()  # Output layer

net.add_neuron(layer_idx=0, activation="linear", label="in")
net.add_neuron(layer_idx=1, activation="linear", bias=0.5, label="out")

print(net.calc([1.0]))
```
---

## License

MIT License - see [MIT License](https://github.com/EvoLib/evo-net/tree/main/LICENSE).

