Giter Site home page Giter Site logo

kvzhao / frozen-loop Goto Github PK

View Code? Open in Web Editor NEW
1.0 3.0 0.0 4.24 MB

This is an official repository of paper "Generation of ice states through deep reinforcement learning", PRE 2019

Home Page: https://journals.aps.org/pre/abstract/10.1103/PhysRevE.99.062106

Python 58.69% CMake 0.16% Shell 0.37% C++ 40.78%

frozen-loop's Introduction

Neural Loop Algorithm

Reinforcement learning framework for discovering Monte Carlo algorithm on ice model.

This is an official repository of paper "Generation of ice states through deep reinforcement learning "

Prerequisites

General

  • CMake (>= 2.8.3)
  • Boost (>= 1.3.2)
  • Python 2.7
  • GCC

Python

  • matlotlib
  • Tesnorflow 1.4

For Mac OSX, we need to install extra boost-python library.

brew install cmake boost-python

for more details, please refer to https://github.com/TNG/boost-python-examples

Installation

  1. Compile icegame core
  2. Install gym-icegame interface (follow instructions in icegame2)

Inference

The inference should be executed at the folder rlloop. Go to the folder and download the trained model.

cd a3c
sh download.sh

or download model from https://drive.google.com/drive/folders/15MO-S_po4NIKsBL94rhOG5rC-fMbBn18?usp=sharing.

Now, we can play with it.

python play_icegame.py --log-dir saved_model

Use --render for visualization.

Training

The following command will launch 8 workers 1 parameter server and 1 rewards monitor.

python distribute_tasks.py -w 8 -l logs/my_task

Experiment Settings

For training, it takes about 3 days on 12 cpu cores.

Physical Observables Measurement

The code in a3c_measure/ folder is modified to measure the correlation function, structure factor, probability frequency.

Download the Models and put in the folder to run.

    sh run_*.sh

frozen-loop's People

Contributors

kaihsin avatar kvzhao avatar

Stargazers

 avatar

Watchers

 avatar  avatar  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.