https://github.com/awslabs/renate
Library for automatic retraining and continual learning
Science Score: 23.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
○.zenodo.json file
-
○DOI references
-
✓Academic publication links
Links to: arxiv.org -
○Committers with academic emails
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (13.7%) to scientific vocabulary
Keywords
aws
continual-learning
hyperparameter-tuning
hyperparameters-optimization
machine-learning
machine-learning-algorithms
neural
neural-network
pytorch
pytorch-lightning
sagemaker
Keywords from Contributors
generic
embedded
controllers
interactive
simulations
charts
transformers
projection
sequences
archival
Last synced: 5 months ago
·
JSON representation
Repository
Library for automatic retraining and continual learning
Basic Info
- Host: GitHub
- Owner: awslabs
- License: apache-2.0
- Language: Python
- Default Branch: main
- Homepage: https://renate.readthedocs.io
- Size: 6.58 MB
Statistics
- Stars: 297
- Watchers: 11
- Forks: 6
- Open Issues: 42
- Releases: 9
Topics
aws
continual-learning
hyperparameter-tuning
hyperparameters-optimization
machine-learning
machine-learning-algorithms
neural
neural-network
pytorch
pytorch-lightning
sagemaker
Created over 3 years ago
· Last pushed over 1 year ago
Metadata Files
Readme
Contributing
License
Code of conduct
Security
README.rst
.. image:: https://img.shields.io/pypi/status/Renate
:target: #
:alt: PyPI - Status
.. image:: https://img.shields.io/github/v/release/awslabs/Renate
:target: https://github.com/awslabs/Renate/releases/tag/v0.5.1
:alt: Latest Release
.. image:: https://img.shields.io/pypi/dm/Renate
:target: https://pypistats.org/packages/renate
:alt: PyPI - Downloads
.. image:: https://img.shields.io/github/license/awslabs/Renate
:target: https://github.com/awslabs/Renate/blob/main/LICENSE
:alt: License
.. image:: https://readthedocs.org/projects/renate/badge/?version=latest
:target: https://renate.readthedocs.io
:alt: Documentation Status
.. image:: https://raw.githubusercontent.com/awslabs/Renate/python-coverage-comment-action-data/badge.svg
:target: https://htmlpreview.github.io/?https://github.com/awslabs/Renate/blob/python-coverage-comment-action-data/htmlcov/index.html
:alt: Coverage Badge
Renate: Automatic Neural Networks Retraining and Continual Learning in Python
******************************************************************************
Renate is a Python package for automatic retraining of neural networks models.
It uses advanced Continual Learning and Lifelong Learning algorithms to achieve this purpose.
The implementation is based on `PyTorch `_
and `Lightning `_ for deep learning, and
`Syne Tune `_ for hyperparameter optimization.
Quick links
===========
* Install renate with ``pip install renate`` or look at `these instructions `_
* Examples for `local training `_ and `training on Amazon SageMaker `_.
* `Documentation `_
* `Supported Algorithms `_
Who needs Renate?
=================
In many applications data is made available over time and retraining from scratch for
every new batch of data is prohibitively expensive. In these cases, we would like to use
the new batch of data provided to update our previous model with limited costs.
Unfortunately, since data in different chunks is not sampled according to the same distribution,
just fine-tuning the old model creates problems like *catastrophic forgetting*.
The algorithms in Renate help mitigating the negative impact of forgetting and increase the
model performance overall.
.. figure:: https://raw.githubusercontent.com/awslabs/Renate/main/doc/_images/improvement_renate.svg
:align: center
:alt: Renate vs Model Fine-Tuning.
Renate's update mechanisms improve over naive fine-tuning approaches. [#]_
Renate also offers hyperparameter optimization (HPO), a functionality that can heavily impact
the performance of the model when continuously updated. To do so, Renate employs
`Syne Tune `_ under the hood, and can offer
advanced HPO methods such multi-fidelity algorithms (ASHA) and transfer learning algorithms
(useful for speeding up the retuning).
.. figure:: https://raw.githubusercontent.com/awslabs/Renate/main/doc/_images/improvement_tuning.svg
:align: center
:alt: Impact of HPO on Renate's Updating Algorithms.
Renate will benefit from hyperparameter tuning compared to Renate with default settings. [#]_
Key features
============
* Easy to scale and run in the cloud
* Designed for real-world retraining pipelines
* Advanced HPO functionalities available out-of-the-box
* Open for experimentation
Resources
=========
* (blog) `Automatically retrain neural networks with Renate `_
* (paper) `Renate: A Library for Real-World Continual Learning `_
Cite Renate
===========
.. code-block:: bibtex
@misc{renate2023,
title = {Renate: A Library for Real-World Continual Learning},
author = {Martin Wistuba and
Martin Ferianc and
Lukas Balles and
Cedric Archambeau and
Giovanni Zappella},
year = {2023},
eprint = {2304.12067},
archivePrefix = {arXiv},
primaryClass = {cs.LG}
}
What are you looking for?
=========================
* `Installation Instructions `_
.. code-block:: bash
pip install renate
* Examples:
* `Train an MLP locally on MNIST `_
* `Train a ResNet on SageMaker `_
* `Documentation website with API doc and examples `_
* `List of the supported algorithms `_
* `How to run continual learning experiments using Renate `_
* `Guidelines for Contributors `_
If you did not find what you were looking for, open an `issue `_ and
we will do our best to improve the documentation.
.. [#] To create this plot, we simulated domain-incremental learning with `CLEAR-100 `_.
The training data was divided by year, and we trained sequentially on them.
Fine-tuning refers to the strategy to learn on the first partition from scratch, and
train on each of the subsequent partitions for few epochs only.
We compare to Experience Replay with an infinite memory size.
For both methods we use the same amount of training time and choose the best checkpoint
using a validation set.
Results reported are on the test set.
.. [#] In this experiment, we consider class-incremental learning on CIFAR-10. We compare
Experience Replay against a version in which its hyperparameters were tuned.
Owner
- Name: Amazon Web Services - Labs
- Login: awslabs
- Kind: organization
- Location: Seattle, WA
- Website: http://amazon.com/aws/
- Repositories: 914
- Profile: https://github.com/awslabs
AWS Labs
GitHub Events
Total
- Watch event: 15
Last Year
- Watch event: 15
Committers
Last synced: 9 months ago
Top Committers
| Name | Commits | |
|---|---|---|
| wistuba | m****u@a****m | 104 |
| dependabot[bot] | 4****] | 47 |
| Lukas Balles | l****s@g****m | 40 |
| Giovanni | 5****1 | 36 |
| Prabhu Teja | p****a@a****e | 21 |
| Wes Kendrick | w****k@g****m | 2 |
| David Salinas | g****o | 1 |
| Amazon GitHub Automation | 5****o | 1 |
Committer Domains (Top 20 + Academic)
amazon.de: 1
amazon.com: 1
Issues and Pull Requests
Last synced: 6 months ago
All Time
- Total issues: 3
- Total pull requests: 228
- Average time to close issues: 22 days
- Average time to close pull requests: 25 days
- Total issue authors: 3
- Total pull request authors: 4
- Average comments per issue: 3.67
- Average comments per pull request: 0.56
- Merged pull requests: 83
- Bot issues: 0
- Bot pull requests: 153
Past Year
- Issues: 0
- Pull requests: 83
- Average time to close issues: N/A
- Average time to close pull requests: 13 days
- Issue authors: 0
- Pull request authors: 2
- Average comments per issue: 0
- Average comments per pull request: 0.69
- Merged pull requests: 1
- Bot issues: 0
- Bot pull requests: 82
Top Authors
Issue Authors
- dependabot[bot] (3)
- wistuba (1)
- 610v4nn1 (1)
- loribonna (1)
Pull Request Authors
- dependabot[bot] (241)
- wistuba (38)
- 610v4nn1 (22)
- lballes (17)
Top Labels
Issue Labels
dependencies (3)
python (3)
stale (2)
question (1)
discussion (1)
documentation (1)
triage (1)
Pull Request Labels
dependencies (241)
python (217)
github_actions (9)
enhancement (1)
Packages
- Total packages: 2
-
Total downloads:
- pypi 62 last-month
-
Total dependent packages: 0
(may contain duplicates) -
Total dependent repositories: 1
(may contain duplicates) - Total versions: 19
- Total maintainers: 1
proxy.golang.org: github.com/awslabs/renate
- Documentation: https://pkg.go.dev/github.com/awslabs/renate#section-documentation
- License: apache-2.0
-
Latest release: v0.5.2
published over 1 year ago
Rankings
Dependent packages count: 6.4%
Average: 6.6%
Dependent repos count: 6.8%
Last synced:
6 months ago
pypi.org: renate
Library for Continual Learning for Practitioners
- Documentation: https://renate.readthedocs.io/
- License: Apache Software License
-
Latest release: 10.7.8
published about 3 years ago
Rankings
Dependent packages count: 10.1%
Average: 17.3%
Downloads: 20.3%
Dependent repos count: 21.6%
Maintainers (1)
Last synced:
6 months ago
Dependencies
.github/workflows/codeql.yml
actions
- actions/checkout v3 composite
- github/codeql-action/analyze v2 composite
- github/codeql-action/init v2 composite
.github/workflows/pypi_publish.yml
actions
- actions/checkout v3 composite
- actions/setup-python v3 composite
- pypa/gh-action-pypi-publish release/v1 composite
.github/workflows/run_unit_tests.yml
actions
- actions/checkout v3 composite
- actions/setup-python v4 composite
doc/requirements.txt
pypi
- docutils *
- pydata-sphinx-theme *
- sphinx-autodoc-typehints *
- sphinx-copybutton *
- sphinx-hoverxref *
- sphinxext-opengraph *
examples/simple_classifier_cifar10/requirements.txt
pypi
- renate *
requirements.txt
pypi
- Pillow >=9.0,<9.3.1
- boto3 >=1.26.0,<1.26.34
- numpy >=1.17.2,<1.23.6
- pandas >=1.4.0,<1.5.3
- pytorch-lightning *
- requests >=2.28.0,<2.28.2
- sagemaker >=2.112.0,<2.124.1
- syne-tune *
- torch >=1.10.0,<1.13.2
- torchdata >=0.4.0,<0.5.2
- torchmetrics *
- torchtext >=0.13.0,<0.14.2
- torchvision >=0.13.0,<0.14.2
.github/workflows/coverage.yml
actions
- py-cov-action/python-coverage-comment-action v3 composite
.github/workflows/integration_tests.yml
actions
- actions/checkout v3 composite
- actions/setup-python v4 composite
.github/workflows/run_renate.yml
actions
- actions/checkout v3 composite
- actions/setup-python v4 composite
- aws-actions/configure-aws-credentials v2 composite
.github/workflows/test_docs.yml
actions
- actions/checkout v3 composite
- actions/setup-python v4 composite
pyproject.toml
pypi
.github/workflows/sagemaker_tests.yml
actions
- actions/checkout v4 composite
- actions/setup-python v4 composite
- aws-actions/configure-aws-credentials v4 composite
benchmarks/requirements.txt
pypi
- Renate *
- wild-time-data *