tensorflow / tensorflow/tensorboard
Agent - Reinforcement Learning plugin
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 7.2k
- Forks
- 1.7k
- Avg merge
- 4d 22h
- Merged PRs (30d)
- 1
Description
Hello! A friend and I prototyped a Tensorboard plugin called Agent for visualizing deep reinforcement learning algorithms. Agent is focused on the time-step level - enabling you to step frame-by-frame through an episode with supporting visualizations.
Chris Anderson of Beholder recommended I post here for advice because the Tensorboard team are “super nice folks in my experience and happy to help.” 😄
Demo GIF
Code/details: https://github.com/andrewschreiber/agent
Agent received constructive feedback from a few Deep RL researchers on Agent’s usefulness for interpretability/explainability work and I was given a grant to work full-time on developing v1 over the next three months. I’m really curious for your feedback on the project, whether it fits in the Tensorboard vision, and ideas for improvements.
A few additional questions:
- Currently Agent writes metadata to JSON files, should I move to protobufs?
- Is there any upper bound of how much disk space a plugin can/should use within the plugin folder? Users of Agent may save gigabytes worth of rollout images and model files, which in theory I could write to a
.agentlogsroot directory folder. - Agent moves images from the python runtime to javascript runtime by encoding the Numpy array as a PNG, converting to base64, and inserting the string into a JSON blob. The JSON is received on a route and the image string is deserialized and passed into an element. I think encoding as binaries would be more efficient, though it seems the internal web server doesn’t support binaries. Would you recommend I implement that or take a different approach?
- One requested feature is user-provided visualizations as cards. Seems tricky and I’m unsure if it’s possible. Is it feasible (given Bazel) to load a new python file at runtime? How might additional dependencies be defined and installed? My sketch architecture is to define a superclass with mandatory overridable methods like
visualizationImage(input, timestep, model, ops). One could make a custom visualization by subclassing in an foo_vis.py file, add the filepath to a section on the sidebar, and see the new visualization as another cell. Agent would handle importing the file, passing the relevant parameters, and rendering the image output. - Should I move Agent to it’s own repo instead of living as a fork?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the linked Agent prototype and its TensorBoard plugin approach. Examine the JSON metadata, image transfer, runtime visualization loading, and repository-location questions; the work is done when the TensorBoard team has agreed on whether Agent fits the project and which architecture and repository path to pursue.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, numpy, python
- Domain
- data-visualization, machine-learning
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100