Random Actions

Ver. 1.0.4 (2022-11-02)

This module providew random genarator for multi purposes, e.g. testing environment, etc..

class mlpro.rl.pool.policies.randomgenerator.RandomGenerator(p_observation_space: MSpace, p_action_space: MSpace, p_id=None, p_buffer_size: int = 1, p_ada: bool = True, p_visualize: bool = False, p_logging=True)

Bases: Policy

A random policy that generates random actions for each dimension of the underlying action space.

See class mlpro.rl.Policy for furter details.

C_NAME = 'RandomGenerator'
compute_action(p_state: State) Action

Specific action computation method to be redefined.

Parameters:

p_obs (State) – Observation data.

Returns:

action – Action object.

Return type:

Action