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

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

Built distribution (wheel)

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

Total release size: 18.3 kB

Release files / pyyeast-0.2.0.tar.gz

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

Download URL pyyeast-0.2.0-py3-none-any.whl
Size 10.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
93c80c6fc8898453aa19ae39638bf3de8c4934ba6eb82550f647d379e81d8bcc
BLAKE2b-256 checksum
How to use checksums
2a302e81d1dbf2d99ca567f24f444786e61893d2fed23e3d8002cd09ea7a342c
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.0

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