TorchRC
An organized collection of Reservoir Computing models and techniques that is well-integrated within the PyTorch API.
WARNING: Work in progress!
What's inside
Models
At the moment, the library contains an implementation of:
- (Leaky/Deep/Bidirectional) Echo State Network (
torch_rc.nn.LeakyESN) - (Leaky/Deep/Bidirectional) Echo State Network with Ring or Multiring Reservoir (
torch_rc.nn.MultiringESN)
More models are coming.
Optimizers
TorchRC allows to train the reservoir models either in closed form or with the standard PyTorch optimizers. Exact incremental closed form techniques are supported in order to support those scenarios in which it is not feasible to hold all the network states in memory. Training on the GPU is also supported.
Currently supported optimizers:
- Ridge Classification (
torch_rc.optim.RidgeClassification): for training a readout in closed-form for classification problems. - Ridge Regression (
torch_rc.optim.RidgeRegression): for training a readout in closed-form for regression problems. - Ridge Incremental Classification (
torch_rc.optim.RidgeIncrementalClassification): for training a readout in closed-form for classification problems, passing data in multiple separate calls (e.g., for when your collection of states does not fit in memory). - Ridge Incremental Regression (
torch_rc.optim.RidgeIncrementalRegression): for training a readout in closed-form for regression problems, passing data in multiple separate calls (e.g., for when your collection of states does not fit in memory).
Installation
pip3 install torch-rc
Example
You can find example scripts in the examples/ folder.
Metadata
Release files for torch-rc 0.4.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| torch_rc-0.4.1.tar.gz | 2.3 kB | Without provenance | Details for torch_rc-0.4.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| torch_rc-0.4.1-py3-none-any.whl | Python 3 | none | any | Details for torch_rc-0.4.1-py3-none-any.whl |
Total release size: 5.1 kB
Release files / torch_rc-0.4.1.tar.gz
| Download URL | torch_rc-0.4.1.tar.gz |
|---|---|
| Size | 2.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d4141ec22c598480a88e836dcce63a9df154f5a890d4e606ed6d8930bb0da79f
|
|
BLAKE2b-256 checksum How to use checksums |
ec91efa165ed0bea346fe5f3303b2c5bed107cbaa66e5efd477567632e9570ce
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.5
|
Release files / torch_rc-0.4.1-py3-none-any.whl
| Download URL | torch_rc-0.4.1-py3-none-any.whl |
|---|---|
| Size | 2.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
19d4409fa44306703329881d968fc6d360e139131cdc58ad29fa0677f3a40d22
|
|
BLAKE2b-256 checksum How to use checksums |
930f3dccd53edfb1380dcc0bcc55529c2e3105174d1e271fd06c2ec501956f3b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.5
|
Security for torch-rc 0.4.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.