Giter VIP home page Giter VIP logo

tmllib's Introduction

TMLlib

A Trustworthy Machine Learning Algorithm Library. This repo collects the official implementations of works done by Yisen Wang and his students.

TODO

  • Our repo is released!
  • [] Add README.
  • [] Add package dependency and scripts to start the code.
  • [] Report benchmark results for reference.

Environment

The environment in which we build this repo is given in requirements.txt. Run the below command to configure the environment.

  pip install -r requirements.txt

List of contents

Implemented Methods & Usage

To start the code

  python main_baseat.py --yaml config/baseat.yaml

Parameters are given in config/baseat.yaml.

2. Improving Adversarial Training Requires Revisiting Mis-classified Examples (MART)

To start the code

  python main_mart.py --yaml config/mart.yaml

Parameters are given in config/mart.yaml.

3. Adversarial Weight Perturbations Help Robust Generalization (AWP)

To start the code

  python main_awp.py --yaml config/awp.yaml

Parameters are given in config/awp.yaml.

4. Generalist: Decoupling natural and robust generalization (Generalist)

To start the code

  python main_generalist.py --yaml config/generalist.yaml

Parameters are given in config/generalist.yaml.

5. Rethinking the effect of data augmentation in adversarial contrastive learning (DynACL)

To start the code

  python main_dynacl.py --yaml config/dynacl.yaml // Pretraining
  python main_dynacllinear.py --yaml config/dynacllinear.yaml // Linear-Probing

Parameters are given in config/dynacl.yaml.

6. Balance, Imbalance, and Rebalance: Understanding Robust Overfitting from a Minimax Game Perspective (ReBAT)

To start the code

  python main_rebat.py --yaml config/rebat.yaml 

Parameters are given in config/rebat.yaml.

Evaluate

To evaluate the accuracy/robustness of pre-trained model

  python main_eval.py --yaml config/eval.yaml 

Parameters are given in config/eval.yaml.

Acknowledgement

We refer some of the links below while building this repo. We sincerely acknowlegde their great work!

tmllib's People

Contributors

cutenpc avatar charles20021201 avatar

Stargazers

Yichuan Mo avatar Xiang Zheng avatar xaddwell avatar Yisen Wang avatar Yifei Wang avatar  avatar  avatar

Watchers

Kostas Georgiou avatar  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.