Giter VIP home page Giter VIP logo

spgls's Introduction

This is the code used to generate the results for the ICML 2021 conference paper "Fast Algorithms for Stackelberg Prediction Game with Least Squares Loss".

This code has the following requirements:

All experimental results in our paper are saved as csv format in the file of "result". The file "datasets" is where our synthetic and real-world datasets are placed. To save space, we only put wine and insurance datasets in "datasets" file, you can download other real-world datasets from the following websites.

If you want to generate synthetic data, please run the ipynb file make_regression_dataset.ipynb. Then the correspondingly synthetic datasets would be placed at file "datasets/synthetic/".

How to get results

  • To run the experiments of real datasets, please run main_real_dataset_mosek.m.
  • To run the experiments of synthetic datasets, please run main_synthetic_mosek.m.

How to plot the figures

  • To plot the average mean squared error (MSE) of different methods, you can use the function plot_mse(csvname), where "csvname" is the path of corresponding MSE csv file. For example, csvname = './result/wine_modest_None_mse.csv'
  • To obtain the figures of time comparison, you can use the function plot_time(csvname), where "csvname" is the path of corresponding time csv file. For example, csvname = './result/wine_modest_None_time.csv'

Citation

If you found the provided code useful, please cite our work.

@InProceedings{pmlr-v139-wang21d,
  title = 	 {Fast Algorithms for Stackelberg Prediction Game with Least Squares Loss},
  author =       {Wang, Jiali and Chen, He and Jiang, Rujun and Li, Xudong and Li, Zihao},
  booktitle = 	 {Proceedings of the 38th International Conference on Machine Learning},
  pages = 	 {10708--10716},
  year = 	 {2021},
  editor = 	 {Meila, Marina and Zhang, Tong},
  volume = 	 {139},
  series = 	 {Proceedings of Machine Learning Research},
  month = 	 {18--24 Jul},
  publisher =    {PMLR},
  pdf = 	 {http://proceedings.mlr.press/v139/wang21d/wang21d.pdf},
  url = 	 {https://proceedings.mlr.press/v139/wang21d.html}
}

spgls's People

Contributors

jialiwang12 avatar optxudli avatar rjjiang 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.