Robustness Framework
The robustness framework is based on top-tier machine learning libraries based on Pytorch. Additionally, it allows for embedding different model architectures and training processes in addition to fixing all research issues. This framework integrates the following libraries:
- Pytorch-Lightning
- Hydra
- torchattacks
The following architectures are covered in this framework and other networks will be added as needed:
- MKToyNet
- LeNet
- DenseNet
- ResNet
- WideResNet
The logging system of this framework is also customizable and resolves all your ideas. As a result, we can take advantage of the efficiency of the following libraries:
- TorchMetrics
- Loggings
- Neptune
- Comet
- MLFlow
- ...
Installation
To install this interesting framework for standard and adversarial machine learning, follow the steps below, and don't waste your time developing an efficient baseline. For installing robustness framework, we have two approaches:
1- Manual installation
git clone https://github.com/khalooei/robustness-framework.git
pip install -r requirements.txt
2- Automatic installation
pip install robustness-framework
Usage
You can just follow the main.py file as a main anchor of this framework. You can define your own configurations in configs directory as we defined training_mnist.yaml and training_cifar10.yaml configuration.
You can run this framework for running on CIFAR10 dataset as below:
python main.py +configs=training_cifar10
[TOBE COMPLETED]
Acknowledgements
Thanks to the people behind Pytorch, Lightning, torchattacks hydra, and MLOps libraries whose work inspired this repository. Furthermore, I would like to thank my supervisors Prof. Mohammad Mehdi Homayounpour and Dr. Maryam Amirmazlagnani for their efforts and guidance.
Metadata
Release files for Robustness-Framework 0.0.3
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 |
|---|---|---|---|---|
| Robustness-Framework-0.0.3.tar.gz | 6.1 kB | Without provenance | Details for Robustness-Framework-0.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| Robustness_Framework-0.0.3-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for Robustness_Framework-0.0.3-py2.py3-none-any.whl |
Total release size: 13.9 kB
Release files / Robustness-Framework-0.0.3.tar.gz
| Download URL | Robustness-Framework-0.0.3.tar.gz |
|---|---|
| Size | 6.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6801fdbf62087ad0db3607d8710fdf5a89d44a3aecec5d204d865e2c2efe00e1
|
|
BLAKE2b-256 checksum How to use checksums |
0a21a0944d03a65a29acad1b8ac7847e248afefe235b7821ee30c498549f19f7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.9.6 requests/2.28.1 setuptools/68.0.0 requests-toolbelt/0.10.1 tqdm/4.65.0 CPython/3.8.10
|
Release files / Robustness_Framework-0.0.3-py2.py3-none-any.whl
| Download URL | Robustness_Framework-0.0.3-py2.py3-none-any.whl |
|---|---|
| Size | 7.7 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
34b64b0870c6da146da60eed6c9af3e11c07475e8360e0242465d3dffe221bb0
|
|
BLAKE2b-256 checksum How to use checksums |
536a4defa996c0ac2fa7a0ebe4462be33e98e7157e3954dd686e671f37d4405b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.9.6 requests/2.28.1 setuptools/68.0.0 requests-toolbelt/0.10.1 tqdm/4.65.0 CPython/3.8.10
|
Security for Robustness-Framework 0.0.3
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.