hypergrad 
Simple and extensible hypergradient for PyTorch
Installation
First, install torch and its accompanying torchvision appropriately. Then,
pip install hypergrad
Methods
Implicit hypergradient approximation (via approximated inverse Hessian-vector product)
- conjugate gradient
- Neumann-series approximation
- Nyström method
Implementation of these methods can be found in hypergrad/approximate_ihvp.py
Citation
To cite this repository,
@software{hypergrad,
author = {Ryuichiro Hataya},
title = {{hypergrad}},
url = {https://github.com/moskomule/hypergrad},
year = {2023}
}
hypergrad is developed as a part of the following research projects:
@inproceedings{hataya2023nystrom,
author = {Ryuichiro Hataya and Makoto Yamada},
title = {{Nystr\"om Method for Accurate and Scalable Implicit Differentiation}},
booktitle = {AISTATS},
year = {2023}
}
Metadata
Release files for hypergrad 0.0.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 |
|---|---|---|---|---|
| hypergrad-0.0.1.tar.gz | 7.2 kB | Without provenance | Details for hypergrad-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| hypergrad-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for hypergrad-0.0.1-py3-none-any.whl |
Total release size: 14.7 kB
Release files / hypergrad-0.0.1.tar.gz
| Download URL | hypergrad-0.0.1.tar.gz |
|---|---|
| Size | 7.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
edac4a645780ca22b4ae48529aaa11263c7e754f14441e5708dd640084dec4b1
|
|
BLAKE2b-256 checksum How to use checksums |
18cf750b754a8e29c5a8806024ecd6a0d4e6e40758f8a10394a9d795efc2bb53
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.1
|
Release files / hypergrad-0.0.1-py3-none-any.whl
| Download URL | hypergrad-0.0.1-py3-none-any.whl |
|---|---|
| Size | 7.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
14bc0306e039a607cea83b51cfc76773051878d4bb31d06c47cfe6ddc0822cd9
|
|
BLAKE2b-256 checksum How to use checksums |
4b65a5f928b12153e586e49759041bb72860583ce6242bf6a0cd0bd6e9f7eba0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.1
|
Security for hypergrad 0.0.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.