Continuous and constrained optimization with PyTorch
Project description
pytorCH OPtimize: a library for continuous and constrained optimization built on PyTorch
...with applications to adversarially attacking and training neural networks.
:warning: This library is in early development, API might change without notice. The examples will be kept up to date. :warning:
Stochastic Algorithms
We define stochastic optimizers in the chop.stochastic
module. These follow PyTorch Optimizer conventions, similar to the torch.optim
module.
Full Gradient Algorithms
We also define full-gradient algorithms which operate on a batch of optimization problems in the chop.optim
module. These are used for adversarial attacks, using the chop.Adversary
wrapper.
Installing
Run the following:
git clone https://github.com/openopt/chop.git
cd chop
pip install .
Welcome to chop
!
Examples:
See examples
directory and our webpage.
Tests
Run the tests with pytests tests
.
Citing
If this software is useful to your research, please consider citing it as
@article{chop,
author = {Geoffrey Negiar, Fabian Pedregosa},
title = {CHOP: continuous optimization built on Pytorch},
year = 2020,
url = {http://github.com/openopt/chop}
}
Affiliations
Geoffrey Négiar is in the Mahoney lab and the El Ghaoui lab at UC Berkeley.
Fabian Pedregosa is at Google Research.
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
Built Distribution
File details
Details for the file chop-pytorch-0.0.3.1.tar.gz
.
File metadata
- Download URL: chop-pytorch-0.0.3.1.tar.gz
- Upload date:
- Size: 2.1 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.0 setuptools/54.0.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f4e970bc868464207ad3ab9f26c71c684831b5b8edc3919e665e5002187ac8dc |
|
MD5 | c7538a6cbe580c5e25728eb265e5b50c |
|
BLAKE2b-256 | 1a2f15035cd1d756c4092fb37a06a875feb296b92dc38e5e7369dee1a9a1820c |
File details
Details for the file chop_pytorch-0.0.3.1-py3-none-any.whl
.
File metadata
- Download URL: chop_pytorch-0.0.3.1-py3-none-any.whl
- Upload date:
- Size: 43.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.0 setuptools/54.0.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9cd1febd5892d97dbeb9ae1b0b1fd0e576e98795943c942b9c16c2b2b721bb82 |
|
MD5 | 69a6f6f0188dbd4cfc4822b5d88f57d1 |
|
BLAKE2b-256 | 3d0ba07bd9b29e3bd317c23d52a0188bc97908670d148ea014cd71324ccc8309 |