Pytorch implementation of LSTM variants
Project description
lstm
Pytorch implementation of LSTM variants
⚠️ Work In progress
Description •
Install •
Usage •
Contribute
Documentation
Description
The lstm
package allows user to easily use various LSTM alternatives, implemented in Pytorch.
Currently implemented :
- Nothing
Roadmap :
- LSTM (to ensure we get the same results as Pytorch implementation)
- GRU (to ensure we get the same results as Pytorch implementation)
- CIFG
- LiGRU
Install
Install lstm
by running :
pip install lstm
Usage
-> TODO
Contribute
To contribute, install the package locally, create your own branch, add your code (and tests, and documentation), and open a PR !
Pre-commit hooks
Pre-commit hooks are set to check the code added whenever you commit something.
If you never ran the hooks before, install it with :
pre-commit install
Then you can just try to commit your code. If your code does not meet the quality required by linters, it will not be committed. You can just fix your code and try to commit again !
You can manually run the pre-commit hooks with :
pre-commit run --all-files
Tests
When you contribute, you need to make sure all the unit-tests pass. You should also add tests if necessary !
You can run the tests with :
pytest
Tests are not included in the pre-commit hooks, because running the tests might be slow, and for the sake of developpers we want the pre-commit hooks to be fast !
Pre-commit hooks will not run the tests, but it will automatically update the coverage badge !
Documentation
The documentation should be kept up-to-date. You can visualize the documentation locally by running :
mkdocs serve
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file lstm-0.1.0.tar.gz
.
File metadata
- Download URL: lstm-0.1.0.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 94b3962888816fa98fae6e1e46b8e57d66af21e894d0c0c5c35e76b22d32d23c |
|
MD5 | 91aefcd65a55d6796665fb9e5bcc54e1 |
|
BLAKE2b-256 | b1ee4af80478081812fe6a76cee0e80eb3efd6e81e119e1e281a8fbddf090095 |
File details
Details for the file lstm-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: lstm-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6a132e19364a33fbae9f053b03320cea2d507b58fc94e139857cad4b43104e57 |
|
MD5 | 89b3c98a21bd5d038d5f5542b46b1b75 |
|
BLAKE2b-256 | ec025e4f11b7e24d13f288b0f882285295e3b9fc60e5fd1eb128ed259d53068a |