Git Product home page Git Product logo

ertsiger / induction-subgoal-automata-rl Goto Github PK

View Code? Open in Web Editor NEW
8.0 3.0 7.0 104 KB

Code for the papers "Induction of Subgoal Automata for Reinforcement Learning" (AAAI-20) and "Induction and Exploitation of Subgoal Automata for Reinforcement Learning" (JAIR).

Home Page: https://jair.org/index.php/jair/article/view/12372

License: MIT License

Shell 11.59% Python 88.41%
automata-learning inductive-logic-programming reinforcement-learning

induction-subgoal-automata-rl's People

Contributors

ertsiger avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

induction-subgoal-automata-rl's Issues

FileNotFoundError: [Errno 2] No such file or directory: 'dot': 'dot'

I tried to run the following command.

python3 run_isa.py hrl config/examples/officeworld/coffee_mail.json

And I got the following error

Traceback (most recent call last):
  File "run_isa.py", line 252, in <module>
    isa_algorithm.run(loaded_checkpoint)
  File "/path/to/folder/induction-subgoal-automata-rl/src/reinforcement_learning/isa_base_algorithm.py", line 130, in run
    super().run(loaded_checkpoint)
  File "/path/to/folder/induction-subgoal-automata-rl/src/reinforcement_learning/learning_algorithm.py", line 140, in run
    self._run_tasks()
  File "/path/to/folder/induction-subgoal-automata-rl/src/reinforcement_learning/learning_algorithm.py", line 148, in _run_tasks
    self._run_episode(self.current_domain_id, self.current_task_id)
  File "/path/to/folder/induction-subgoal-automata-rl/src/reinforcement_learning/isa_hrl_algorithm.py", line 268, in _run_episode
    return super()._run_episode(domain_id, task_id)
  File "/path/to/folder/induction-subgoal-automata-rl/src/reinforcement_learning/isa_base_algorithm.py", line 181, in _run_episode
    compressed_observation_history)
  File "/path/to/folder/induction-subgoal-automata-rl/src/reinforcement_learning/isa_base_algorithm.py", line 339, in _perform_interleaved_automaton_learning
    self._update_automaton(task, domain_id)
  File "/path/to/folder/induction-subgoal-automata-rl/src/reinforcement_learning/isa_base_algorithm.py", line 405, in _update_automaton
    ISAAlgorithmBase.AUTOMATON_PLOT_FILENAME % self.automaton_counters[domain_id])
  File "/path/to/virtual/env/lib/python3.6/site-packages/gym-subgoal-automata/gym_subgoal_automata/utils/subgoal_automaton.py", line 128, in plot
    self._run_graphviz_subprocess(diagram_path, solution_plot_path)
  File "/path/to/virtual/env/lib/python3.6/site-packages/gym-subgoal-automata/gym_subgoal_automata/utils/subgoal_automaton.py", line 193, in _run_graphviz_subprocess
    filename])
  File "/path/to/virtual/env/lib/python3.6/subprocess.py", line 287, in call
    with Popen(*popenargs, **kwargs) as p:
  File "/path/to/virtual/env/lib/python3.6/subprocess.py", line 729, in __init__
    restore_signals, start_new_session)
  File "/path/to/virtual/env/lib/python3.6/subprocess.py", line 1364, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'dot': 'dot'

I tried to locate where the file name "dot" has been mentioned. But I couldn't find any.

Can you please solve this bug or tell me what to do to solve this. Thank you.

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.