pantheonrl.common.util

Collection of utility functions for the common classes.

Functions

action_from_policy

Return the action, values, and log_probs given an observation and policy

calculate_space

Return the new space if the observation is framestacked

clip_actions

Return the actions clipped by the action space of the policy

get_default_obs

Return the default observation for a given environment

get_space_size

Return the length of a space

resample_noise

Resample the model's noise given the number of active steps.

Classes

FeedForward32Policy

A feed forward policy network with two hidden layers of 32 units.

Exceptions

SpaceException

Raise when an illegal Space is used