microsoft / TextWorld

​TextWorld is a sandbox learning environment for the training and evaluation of reinforcement learning (RL) agents on text-based games.
Other
1.23k stars 189 forks source link

Add graph visualization tool. #189

Closed MarcCote closed 4 years ago

MarcCote commented 5 years ago

This PR adds support for visualizing the underlying graph of a game state. image

This PR also fixes #162

TODO:

codecov-io commented 4 years ago

Codecov Report

Merging #189 into master will decrease coverage by <.01%. The diff coverage is 78.06%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #189      +/-   ##
==========================================
- Coverage   81.01%   81.01%   -0.01%     
==========================================
  Files          56       57       +1     
  Lines        6757     6925     +168     
==========================================
+ Hits         5474     5610     +136     
- Misses       1283     1315      +32
Impacted Files Coverage Δ
textworld/render/__init__.py 100% <100%> (ø) :arrow_up:
textworld/envs/wrappers/viewer.py 80.95% <50%> (+0.46%) :arrow_up:
textworld/render/serve.py 47.64% <63.88%> (-0.36%) :arrow_down:
textworld/render/render.py 60.37% <69.56%> (+3.78%) :arrow_up:
textworld/render/graph.py 91.66% <91.66%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update a820f38...d99df57. Read the comment docs.