GithubHelp home page GithubHelp logo

prog-synth-sac's Introduction

prog-synth-SAC

Lucas Kabela

A research project investigating applications of Soft Actor Critic in Neural Program Synthesis

References:

This project is largely following the work of Robustfill by Delvin et al. 17

DSL and base model was largerly derived from here

SAC imlementation derived from here

Getting Started

Prerequisites

The following base packages were used to run this repository:

First Steps

This repository contains code for training a model for neural program synthesis. We provide supervised learning and reinforcement learing algorithms REINFORCE and SAC. To train a model, run python train.py [--sac] [--reinforce] and to evaluate python train.py --eval -c --checkpoint_filename [policy to evaluate]

See train.py for more command line arguments related to hyperparameters. Alternatively, we have provided a notebook, train.ipynb which requires the code in the src folder to run. This code, with supervised training from scratch should reach a loss of 4 within minutes, and below 2 in about 30 hours with hyperparameters provided

Repository Structure

.
├── model_zoo              # Pretrained models used to produce results
|
├── results                # Results of experiments in csv
|
├── src                    # source code for the project
|
├── writeups               # Project proposal and final report
|
├── LICENSE
| 
└── README.md

Src

Contains the code required for training the models and running experiments, as well as executable notebooks.

Training in Colab:

Note, this program has long training times, so if you are running in colab, to avoid disconnection from inactivity and take advantage of full training time, please add the following to the console:

function ClickConnect(){
    console.log("Clicking");
    document.querySelector("colab-connect-button").click()
}
setInterval(ClickConnect,60000)

Results

Contains the raw data from experiments

Writeup

This folder contains the project proposal and final report/writeup describing the methodology, intuitions, related works and results.

License:

This project is licensed under the terms of the MIT license.

prog-synth-sac's People

Contributors

lucaskabela avatar

Stargazers

 avatar Pedro Sequeira avatar

Watchers

James Cloos avatar paper2code - bot 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.