Giter Club home page Giter Club logo

paradox-for-test's Introduction

On the Paradox of Certified Training portfolio_view

The code accompanying our TMLR 10/2022 paper: On the Paradox of Certified Training.

For a brief overview of the work, check out our blogpost.

Requirements

We require the following packages:

cudatoolkit=10.1
matplotlib=3.3.2
numpy=1.19.2
pytorch==1.6.0
scikit-learn=0.23.2
tabulate=0.8.7
torchvision==0.7.0 
tqdm=4.50.2

To set up a sufficient conda environment, start by installing pytorch 1.6.0 in a python 3.6.9 environment:

$ conda create -n myenv python=3.6.9
$ conda activate myenv
$ conda install pytorch==1.6.0 torchvision==0.7.0 cudatoolkit=10.1 -c pytorch

Then, install the remaining required packages using the provided file requirements.txt:

$ pip install -r requirements.txt

Running the code

To run certified training with convex relaxations invoke cert.py. In scripts/ we provide the example commands used to train all models shown in Tables 2, 3, and 4.

The training will save model snapshots to saved_models/ and the results to results/ (the folders will be automatically created).

To run with different settings, modify the examples, referring to args_factory.py which documents the command-line flags.

Additionally, we provide snapshots of the models from Table 2 in pretrained/. In scripts/table2.sh we give an example of a command used to evaluate one such snapshot.

Citation

@article{
    jovanovic2022on,
    title={On the Paradox of Certified Training},
    author={Nikola Jovanovi{\'c} and Mislav Balunovi\'{c} and Maximilian Baader and Martin Vechev},
    journal={Transactions on Machine Learning Research},
    year={2022},
    url={https://openreview.net/forum?id=atJHLVyBi8},
    note={}
}

paradox-for-test's People

Contributors

crhapsody avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.