iclbench.environments.crafter package

Submodules

iclbench.environments.crafter.env module

class iclbench.environments.crafter.env.CrafterLanguageWrapper(env, task='', max_episode_steps=2)[source]

Bases: Wrapper

__init__(env, task='', max_episode_steps=2)[source]

Wraps an environment to allow a modular transformation of the step() and reset() methods.

Parameters:

env – The environment to wrap

default_iter = 10
default_steps = 10000
get_stats()[source]
get_text_action(action)[source]
process_obs(obs, info)[source]
reset()[source]

Resets the environment with kwargs.

step(action)[source]

Steps through the environment with action.

update_progress(info)[source]
iclbench.environments.crafter.env.describe_act(action)[source]
iclbench.environments.crafter.env.describe_env(info)[source]
iclbench.environments.crafter.env.describe_frame(info)[source]
iclbench.environments.crafter.env.describe_inventory(info)[source]
iclbench.environments.crafter.env.describe_loc(ref, P)[source]
iclbench.environments.crafter.env.describe_status(info)[source]
iclbench.environments.crafter.env.get_player_idx()[source]
iclbench.environments.crafter.env.rotation_matrix(v1, v2)[source]

Module contents

iclbench.environments.crafter.get_instruction_prompt(task=None)[source]