Skip to content

Cooperative Mining API Reference

Family dispatcher

Cooperative Mining substrate entrypoints.

parallel_env(sub_substrate: str = 'coop_mining', **kwargs: Any)

Create a native PettingZoo ParallelEnv for a Cooperative Mining variant.

env(sub_substrate: str = 'coop_mining', **kwargs: Any)

Create a PettingZoo AEC environment for a Cooperative Mining variant.

Cooperative Mining

Native PettingZoo implementation of Melting Pot's Cooperative Mining.

CoopMiningConfig dataclass

Configuration for the native Cooperative Mining substrate.

CoopMiningParallelEnv

Bases: ParallelEnv[Agent, dict[str, ndarray], int]

PettingZoo ParallelEnv for Cooperative Mining.

parallel_env(render_mode: RenderMode = None, config: CoopMiningConfig | None = None, **config_overrides: Any) -> CoopMiningParallelEnv

Create the native Cooperative Mining ParallelEnv.

env(render_mode: RenderMode = None, **kwargs: Any)

Create the native Cooperative Mining AEC env.