Giter VIP home page Giter VIP logo

adaptive_effdim_solver's Introduction

Sketching-based preconditioned iterative solvers with adaptive sketch size at the level of the effective dimension

Solve regularized least-squares optimization problem with sketching-based preconditioned iterative solvers, e.g., iterative Hessian sketch.

Choice of sketch size? Can be as small as the effective dimension of the optimization problem.

Problem: computing the effective dimension is in general expensive.

Adaptive methods: time-varying (adaptive) sketch size; start with small sketch size; at each step, check whether enough progress is made; if not, double sketch size and recompute the sketch.

Adaptive iterative methods: iterative Hessian sketch, preconditioned conjugate gradient method, heavy-ball method.

See [1,2] for details.

Requirements

Numpy, Scipy, Scikit-learn, Pandas, cvxopt

Usage

Data

Download datasets from openml.org, e.g, Dilbert

python ./datasets/dowload_dataset_openml --dataset 'dilbert'

Download WESAD dataset [3] by executing ./datasets/download_wesad.sh

Compare iterative solvers

python main.py --dataset 'dilbert' --nu 1 --n_trials 1

Results stored in ./results/dilbert_nu_1.npz

Plot results

Instructions in jupyter notebook ./plot_results.ipynb

References

[1] J. Lacotte and M. Pilanci. Effective dimension adaptive sketching methods for faster regularized least-squares optimization. NeurIPS 2020. [2] J. Lacotte and M. Pilanci. Fast Convex Quadratic Optimization Solvers with Adaptive Sketching-based Preconditioners. Arxiv preprint 2021. https://arxiv.org/pdf/2104.14101.pdf [3] P. Schmidt, A. Reiss, R. Duerichen, C. Marberger, and K. Van Laerhoven. Introducing WESAD, a multimodal dataset for wearable stress and affect detection. In ICMI, 2018.

adaptive_effdim_solver's People

Contributors

jonathanlctt avatar pilanci avatar

Stargazers

 avatar Nicholas Mancuso avatar EdgeLLM avatar Guowu Zhang 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.