machina.envs package

Submodules

machina.envs.ac_in_ob_env module

machina.envs.continuous2discrete_env module

Continuous to discrete.

class machina.envs.continuous2discrete_env.C2DEnv(env, n_bins=30)[source]

Bases: object

Wrapper environment for converting continuous action space to multi discrete action space.

Parameters:
  • env (gym.Env) –
  • n_bins (int) – Number of bins for converting continuous to discrete. e.g. continuous action space is 0 ~ 1 and n_bins=5, action space is converted to [0, 0.25, 0.5, 0.75, 1]
action_space
horizon
observation_space
render()[source]
reset()[source]
step(action)[source]
terminate()[source]

machina.envs.env_utils module

machina.envs.gym_env module

This is code for gym. This code is taken from rllab which is MIT-licensed.

class machina.envs.gym_env.CappedCubicVideoSchedule[source]

Bases: object

class machina.envs.gym_env.GymEnv(env, record_video=False, video_schedule=None, log_dir=None, force_reset=False)[source]

Bases: object

action_space
horizon
observation_space
render()[source]
reset()[source]
step(action)[source]
terminate()[source]
class machina.envs.gym_env.NoVideoSchedule[source]

Bases: object

machina.envs.rew_in_ob_env module

machina.envs.skill_env module