Skip to content

truongnhatnguyenbao/embodied

This branch is 5 commits behind danijar/embodied:main.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Oct 13, 2023
4d81ca5 · Oct 13, 2023

History

39 Commits
Aug 30, 2023
Nov 15, 2021
Oct 13, 2023
Jun 30, 2022
Aug 31, 2022
Jun 30, 2022
Aug 30, 2023
Aug 30, 2023
Aug 30, 2023

Repository files navigation

PyPI   Docs

Embodied

Fast reinforcement learning research.

Overview

The goal of Embodied is to empower researchers to quickly implement new agents at scale. Embodied achieves this by specifying an interface both for environments and agents, allowing users to mix and match agents, envs, and evaluation protocols. Embodied provides common building blocks that users are encouraged to fork when more control is needed. The only dependency is Numpy and agents can be implemented in any framework.

Packages

embodied/
  core/    # Config, logging, checkpointing, simulation, wrappers
  run/     # Evaluation protocols that combine agents and environments
  envs/    # Environment suites such as Gym, Atari, DMC, Crafter
  agents/  # Agent implementations

Agent API

class Agent:
  __init__(obs_space, act_space, config)
  policy(obs, state=None, mode='train') -> act, state
  train(data, state=None) -> state, metrics
  report(data) -> metrics
  dataset(generator) -> generator
  init_policy(batch_size) -> state
  init_train(batch_size) -> state

Env API

class Env:
  __len__() -> int
  @obs_space -> dict of spaces
  @act_space -> dict of spaces
  step(action) -> obs dict
  render() -> array
  close()

About

Fast reinforcement learning research

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 98.6%
  • Other 1.4%