Simple and extensible hypergradient for PyTorch
Project description
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}
}
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
hypergrad-0.0.1.tar.gz
(7.2 kB
view details)
Built Distribution
File details
Details for the file hypergrad-0.0.1.tar.gz
.
File metadata
- Download URL: hypergrad-0.0.1.tar.gz
- Upload date:
- Size: 7.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | edac4a645780ca22b4ae48529aaa11263c7e754f14441e5708dd640084dec4b1 |
|
MD5 | 948b1acb04c0fb071ecc3c06fdd94e54 |
|
BLAKE2b-256 | 18cf750b754a8e29c5a8806024ecd6a0d4e6e40758f8a10394a9d795efc2bb53 |
File details
Details for the file hypergrad-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: hypergrad-0.0.1-py3-none-any.whl
- Upload date:
- Size: 7.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 14bc0306e039a607cea83b51cfc76773051878d4bb31d06c47cfe6ddc0822cd9 |
|
MD5 | 2dda9e496a3404bbecc8096979c34660 |
|
BLAKE2b-256 | 4b65a5f928b12153e586e49759041bb72860583ce6242bf6a0cd0bd6e9f7eba0 |