yawning_titan.agents.random#

Classes

RandomAgent

A simple implementation of a Random Agent capable of randomly acting within anOpenAI Gym environment.

class yawning_titan.agents.random.RandomAgent(action_space)[source]#

A simple implementation of a Random Agent capable of randomly acting within anOpenAI Gym environment.

Note: Both act and predict methods are provided to fit with different tutorials online that use different terminology for the same thing.

__init__(action_space)[source]#
act(observation, reward, done)[source]#

Randomly sample an action from the action space.

predict(observation, reward, done)[source]#

Randomly sample an action from the action space.