Git Product home page Git Product logo

Automatically Learning Compact Quality-aware Surrogates for Optimization Problems

This is the implementation of the paper Automatically Learning Compact Quality-aware Surrogates for Optimization Problems accepted as a spotlight presentation at NeurIPS 2020. The paper includes three examples: adversarial modeling in network security games (NSG folder), movie recommendation with a submodular objective (movie folder), and a convex portfolio optimization (portfolio folder). Among these three, NSG uses synthetic data, movie recommendation uses the data from MovieLens (ml-25m), and portfolio optimization uses the data downloaded from Quandl using quandl API.

The commands to run each example are included in each folder. You will have to download the data from MovieLens in movie recommendation and apply for an API key from Quandl in portfolio optimization before running the code.

All the implementations are written in Python3.

Here is a list of dependency:

[Update 2021/2/7] I used a fresh conda environment to test the code (all three domains) and fixed some dependency issues. More specifically, I updated some networkx syntax to accomodate the latest networkx version. I also removed the dependency of gurobipy (and localqpth), which was not used in the final implementation. They are some other misc changes (disabling qpth verbose etc.), but the main part of the implementation was not involved. You can find the updated package-list.txt in the repo.

Across all three domains, the epoch -1 refers to the optimal performance, where a perfect prediction is used to compute the loss (should be 0) and the corresponding performance. The epoch 0 instead computes the untrained performance, where no training is performed in this epoch but just evaluation. The training only starts from epoch 1.

Sometimes qpth would have some convergence issue. I switched to use cvxpylayers, a newer implementation of differentiable convex optimization layer, in the portifolio domain.

Kai Wang's Projects

awesome-cv icon awesome-cv

Awesome CV is LaTeX template for your outstanding job application

crypto icon crypto

Lecture notes for a course on cryptography

docplex-examples icon docplex-examples

These samples demonstrate how to use the DOcplex library to model and solve optimization problems.

equilibrium_gradient icon equilibrium_gradient

This is the implementation of "Coordinating Followers to Reach Better Equilibria: End-to-End Gradient Descent for Stackelberg Games", Kai Wang, Lily Xu, Andrew Perrault, Michael K. Reiter, and Milind Tambe published at AAAI 2022

guaguakai.github.io icon guaguakai.github.io

Github Pages template for academic personal websites, forked from mmistakes/minimal-mistakes

scalable-game-focused-learning icon scalable-game-focused-learning

Implementation of "Scalable Game-Focused Learning of Adversary Models: Data-to-Decisions in Network Security Games" accepted by AAMAS 2020

spinningup icon spinningup

An educational resource to help anyone learn deep reinforcement learning.

todomvc icon todomvc

Helping you select an MV* framework - Todo apps for Backbone.js, Ember.js, AngularJS, and many more

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.