Coder Social home page Coder Social logo

mesbah-lab-ucb / plasmarl-appj Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 946 KB

This code trains and implements a reinforcement learning framework for control of the thermal effects of an atmospheric pressure plasma jet

Home Page: https://doi.org/10.1088/1361-6595/ab3c15

License: MIT License

Python 100.00%
reinforcement-learning cappj plasma

plasmarl-appj's Introduction

PlasmaRL

Actor-critic controller of thermal effects of an atomospheric pressure plasma jet

Supporting Code for: Witman, M; Gidon, D.; Graves, D.B.; Smit, B.; Mesbah, A. "Sim-to-real transfer reinforcement learning for control of thermal effects of an atomospheric pressure plasma jet"

  1. Train the RLC: python train_ac_f18_plasma.py PlasmaModel -ep 100 -epext 1 --discount 0.99 -n 3000 -e 1 -l 2 -s 64 -b 10000 -lr 0.005 -ntu 10 -ngsptu 10 --exp_name test

    PlasmaModel : use the plasma model dynamics files
    -ep 100 : number of episode/roll-outs per training epoch
    -epext 1 : number of timesteps at the end which are NOT included
    --discount 0.99 : the discount factor
    -n 3000 : number of training epochs
    -e 1 : number of agents to train starting from different random seeds
    -l 2 : number of hidden layers in actor/critic networks
    -s 64 : nodes per hidden layer
    -b 10000 : number of timesteps to be included in the batch of training data in each epoch
    -lr 0.005 : learning rate
    -ntu 10 : number of target updates (ntu), num. times the critic networks targets are updated per actor update
    -ngsptu 10 : number of gradient steps per target update (ngsptu)
    --exp_name test : data is saved in "./data/ac_test_PlasmaModel_timestamp/

  2. Validate the RLC on the physics model over randomized dynamics swith invivo=True to use the RLC to send messages to a socket): python train_ac_f18_plasma.py PlasmaModel --execute data/ac_test_PlasmaModel_timestamp/1/

  3. If you want to validate the RLC on a live device, set invivo=True in train_ac_f18_plasma.py and modify the destination for your message

  4. The ./data folder ships with the E-RLC in the above publication

The code is quite specific to the application of the paper above since not much focus has yet been placed to generalize it for different physics based models of plasma dynamics. Feel free to contact authors for advice/assistance using the code with different models.

plasmarl-appj's People

Contributors

mwitman1 avatar

Watchers

Kostas Georgiou 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.