Giter VIP home page Giter VIP logo

rl-minigrid's Introduction

RL-Minigrid

场景:https://minigrid.farama.org/environments/minigrid/DoorKeyEnv/

行为树脚本放到:scripts/目录下

  • run_bt.py 运行纯粹的行为树
  • run_rl.py 运行纯粹的强化学习
  • run_rlbt.py 运行强化学习+行为树
parser.add_argument('--train', action='store_true') # 是否开启训练
parser.add_argument('--render', action='store_true') # 是否开启渲染
parser.add_argument('--track', action='store_true') # 是否开启pybts监控
python run_rlbt.py --train --render --track
  • render_all_bt.py 将所有scripts的行为树图片生成到scripts/images中
python render_all_bt.py

日志

开启tensorboard日志

tensorboard --logdir=logs

开启pybts日志

pybts --dir=logs

强化学习节点

  • RLSwitcher
  • RLSelector
  • RLSequence
  • RLCondition
  • RLAction

奖励节点

会将奖励放到对应的奖励域中

<Reward domain="target" reward="1"/>

1个

1红色门,1蓝色门 1红色钥匙,1蓝色钥匙

Selector/Sequence/Switcher

Selector:备选项 Sequence: 预设动作序列 Switcher: 自己学习动作序列

rl-minigrid's People

Contributors

jayscoder avatar

Stargazers

 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.