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.1

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.1
File Size Uploaded Provenance Actions
pyyeast-0.2.1.tar.gz 8.0 kB Without provenance Details for pyyeast-0.2.1.tar.gz

Built distribution (wheel)

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

Total release size: 18.3 kB

Release files / pyyeast-0.2.1.tar.gz

Download URL pyyeast-0.2.1.tar.gz
Size 8.0 kB
Tags Source
SHA-256 checksum
How to use checksums
dd14da672da09432ab8d92138d7536ee39b07191c7e4313e10ba283f5b93d0e9
BLAKE2b-256 checksum
How to use checksums
f9b25d8c7d9e9ee9337f1492ce5a73f6906eefb29ef93ccb35edc52dd6bb8ee3
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.1-py3-none-any.whl

Download URL pyyeast-0.2.1-py3-none-any.whl
Size 10.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
465419484156d09e65a98426c8134351643ad05ccbdbac9c41bf4ff0d6cb0d15
BLAKE2b-256 checksum
How to use checksums
2244fa93468182f1b582784105537278bf8b7bbbfe535ba0bc0b5a5c27ffdd66
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.1

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