Giter VIP home page Giter VIP logo

re-bt-espresso's Introduction

RE:BT-Espresso enhanced by GFACTOR algorithm.

This git repository is a fork from RE:BT-Espresso. This README will guide you to generate the results presented in the paper Learning Behavior Trees from Planning Experts Using Decision Tree and Logic Factorization. This repository is the so called SETUPII in the paper

Install

  1. Install python3.8
  2. (Optional) create a python3 virtual environment and activate it
  3. Install packages in python pip install joblib py_trees pandas wheel sklearn imblearn graphviz matplotlib pydot networkx sympy pyeda
  • If you have troubles installing pyeda in windows, we provide the wheel file. Run the command pip install pyeda-0.28.0-cp38-cp38-win_amd64.whl
  • There is a bug is Pyeda library that also need to be fixed. See #17 for fix.
  • If you get an UnicodeEncodeError navigate to your site packages (typically here ~/.local/lib/python3.8/site-packages, open file pydot.py and change the encoding in lines 1825 to 'utf-8'

Reproducing the results for the Tree Structure

Open a terminal in the top level directory. Note that these steps are sequential and it is highly reccomanded to run them in order. We provide in the output folder the files (created during the steps) that are needed to run the following steps. Copy paste the file in the right directoty and run the next step

  1. Repeat 11 times (number of simulations)
    1. To create the simulation data copy paste in the terminal: python run_experiments.py -k -g Expected output: in the folder sim_data 99 folders (exprx)

    2. To collect the tre structure analysis copy paste in the terminal: python tree_structure_simulation.py

      Expected output: graphAnalysis.csv in the \GraphAnalysis directory

    3. (Only the first time) In the file tree_structure_simulation.py comment lines 109,113 and remove the comment from line 110

  2. To compute the results presented in the paper copy paste in the terminal: python tree_structure.py Figures 5 and 6 will be printed one after the other

re-bt-espresso's People

Contributors

tgroechel avatar adamwathieu avatar cmkuo12 avatar simonagug avatar dependabot[bot] avatar omscs-coffee-chats avatar haemin-lee avatar roddurd 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.