<filename>robolfd/environment_loop.py
""" A simple agent-environment training loop.""""

from robolfd import core
from robolfd.utils import counting
from robolfd.utils import loggers
from robosuite import __spec__

class EnvironmentLoop(core.Worker):
  """A simple RL environment loop.

  This takes `Environment` and `Actor` instances and coordinates their
  interaction. Agent is updated if `should_update=True`. This can be used as:

    loop = EnvironmentLoop(environment, actor)
    loop.run(num_episodes)

  A `Counter` instance can optionally be given in order to maintain counts
  between different Acme components. If not given a local Counter will be
  created to maintain counts between calls to the `run` method.

  A `Logger` instance can also be passed in order to control the output of the
  loop. If not given a platform-specific default logger will be used as defined
  by utils.loggers.make_default_logger. A string `label` can be passed to easily
  change the label associated with the default logger; this is ignored if a
  `Logger` instance is given.
  """
<filename>robolfd/environment_loop.py
""" A simple agent-environment training loop.""""

from robolfd import core
from robolfd.utils import counting
from robolfd.utils import loggers
from robosuite import __spec__

class EnvironmentLoop(core.Worker):
  """A simple RL environment loop.

  This takes `Environment` and `Actor` instances and coordinates their
  interaction. Agent is updated if `should_update=True`. This can be used as:

    loop = EnvironmentLoop(environment, actor)
    loop.run(num_episodes)

  A `Counter` instance can optionally be given in order to maintain counts
  between different Acme components. If not given a local Counter will be
  created to maintain counts between calls to the `run` method.

  A `Logger` instance can also be passed in order to control the output of the
  loop. If not given a platform-specific default logger will be used as defined
  by utils.loggers.make_default_logger. A string `label` can be passed to easily
  change the label associated with the default logger; this is ignored if a
  `Logger` instance is given.
  """
A simple agent-environment training loop. A simple RL environment loop.    This takes `Environment` and `Actor` instances and coordinates their   interaction. Agent is updated if `should_update=True`. This can be used as:      loop = EnvironmentLoop(environment, actor)     loop.run(num_episodes)    A `Counter` instance can optionally be given in order to maintain counts   between different Acme components. If not given a local Counter will be   created to maintain counts between calls to the `run` method.    A `Logger` instance can also be passed in order to control the output of the   loop. If not given a platform-specific default logger will be used as defined   by utils.loggers.make_default_logger. A string `label` can be passed to easily   change the label associated with the default logger; this is ignored if a   `Logger` instance is given.