Skip to main content

PyYeast logo

Python PyTorch

The project

What's this stuff?

Good question. PyYeast is a Python package built for create and handle SENN, aka Self Expanding Neural Networks. A SENN can be used to create an AI model that expand itself during the training, to improve its capacity.

I built it because I think SENN are very useful and powerful, so my goal is to create a package to make easier build and manage them, also implementing them in already existing NN.

I hope you'll find my project useful. Remember to leave a star ★!

The features

Here you can find the resources the package provides:

from sub-package layers

  • XLinear: a linear layer that can expand his structure by itself ("X" stands for "eXpanding"). It does it in 2 ways:

    • out features expanding: it increases the number of neurons, improving the layer capacity
    • in features expanding: it automatically detects if the input tensor is change, adding new weights to process it correctly
  • XAdapter: a XLinear layer, but with a special feature:

    • the filter layer: it also has a "hidden" XLinear layer, that takes the output and keep it always identical. Thanks of this, you can use an XAdapter in a static neural network, avoiding crashes, because the static after the XAdapter receive always the same sizes tensor.
  • XOptimWrapper: a special wrapper for PyTorch optimizers, to "upgrade" them into SENN-compatible ones!

    • given the PyTorch Module and the optimizer associated to it, XOptimWrapper detects automatically all the expanding layers present within it.
    • Then, using the given optimizer, every time it expand the layers, it automatically overwrites the dicts of the old parameter with the new ones. For now, it only overwrites them. In the future, it will be able to keep the old datas, adding only the new weights at the dict.

Quickstart

To use this package, you first need Python 3.12 (or newest) on your device.

Then, run in your terminal:

pip install pyyeast

If you want to see the package in action, run the demonstration file (click here to see it) with

pysenn

Credits

For create this projects, I used the incredible framework PyTorch. It gave my the resources to customize my componentes and build from scratch new solutions.

Thank also, to Hack Club for give a way to build, meet and play to dev teenagers from all around the world.

About me

Hi! I'm Alessio, a young dev from Verona, Italy 🇮🇹. CS is my passion, and I'm working to make it my future. If you're interested to know me, or you just want to have a talk about projects, development or something else... See my GitHub profile or my website. Have a good day!

Metadata

Release files for pyyeast 0.2.2

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

Source distribution (sdist)

Source distribution for pyyeast 0.2.2
File Size Uploaded Provenance Actions
pyyeast-0.2.2.tar.gz 8.0 kB Without provenance Details for pyyeast-0.2.2.tar.gz

Built distribution (wheel)

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

Total release size: 18.6 kB

Release files / pyyeast-0.2.2.tar.gz

Download URL pyyeast-0.2.2.tar.gz
Size 8.0 kB
Tags Source
SHA-256 checksum
How to use checksums
ae662f3da4dad4c64c7ada378898a88df2ea3f91500000c1a55feed4cbb65fbb
BLAKE2b-256 checksum
How to use checksums
8095b81972e92d6695c8a2dbcc6c469e07db7467a9cf903ee0e2160f2d2c2cbf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.0

Release files / pyyeast-0.2.2-py3-none-any.whl

Download URL pyyeast-0.2.2-py3-none-any.whl
Size 10.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4fc9ef70364027d272bbda0a1d8818a54fbbc69a156e5aa0ccf70641279a7cdb
BLAKE2b-256 checksum
How to use checksums
8482429828c52a230ba4ada031c4cbe0220c09301ebe66b867cbd6650080d6fe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.0

Security for pyyeast 0.2.2

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