Module moog.tasks

Tasks

The MOOG Environment class takes a task keyword argument that defines a reward structure and trial reset condition. This directory contains some task classes that can be used.

Tasks must satisfy the API of AbstractTask.

Composite Task

Of particular note is the CompositeTask, which allows a user to compose tasks, summing their rewards. For example, if you want a task that gives a reward when the agent contacts a target and a reward at regular intervals and resets upon some other condition, you can compose a ContactReward task, a StayAlive task, and a Reset task in a CompositeTask.

Expand source code
""".. include:: README.md"""

from .abstract_task import AbstractTask
from .composite_task import CompositeTask
from .contact_reward import ContactReward
from .reset import Reset
from .stay_alive import StayAlive

Sub-modules

moog.tasks.abstract_task

Abstract task.

moog.tasks.composite_task

Composite task.

moog.tasks.contact_reward

Task for receiving rewards upon contact.

moog.tasks.reset

Task for resetting environment upon a condition of the environment state.

moog.tasks.stay_alive

Task that gives reward at regular intervals during task.