Giter Site home page Giter Site logo

l2disopt's Introduction

Learning-to-Optimize ๐Ÿ“ˆ

A (mostly faithful) implementation of the 2016 paper Learning to Optimize. You can find a more casual explanation in this blog post.

The main idea behind the paper is simple: instead of using handcrafted optimization algorithms, why not learn them? The paper presents a framework for learning optimization algorithms for machine learning objectives. They cast this as a reinforcement learning problem, where the algorithm is the policy, and the reward is the negative objective function. Check out the blog post or paper for more details.

Disclaimer: This was a final project for a class. You can find the hastily written report here, which contains details about implementation and a few performance plots. Unfortunately, there wasn't time to implement the Guided Policy Search algorithm used in the original work (more here and here), so we tested with standard RL algorithms like A2C and PPO instead. We obtained similar performance as the original paper on most objectives, but performed worse when optimizing the 2-layer MLP. However we also performed little hyperparameter tuning, and think performance could be significantly improved.

I hope this can be a useful reference for others looking to explore optimizer learning. And of course, feel free to reach out to me!

Getting Started ๐Ÿคฉ

To install requirements, run:

$ pip install -r requirements.txt

To run the code, check out the notebook experiments.ipynb.

Format with make format, lint with make lint.

l2disopt's People

Contributors

jarvis-k 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.