Momba Gym

Implements an OpenAI Gym compatible interface:

class momba.gym.create_generic_env(network, controlled_instance, property_name, *, parameters=None, rewards=Rewards(goal_reached=100, dead_end=-100, step_taken=0, invalid_action=-100), actions=<Actions.EDGE_BY_INDEX: 1>, observations=<Observations.GLOBAL_ONLY: 1>, renderer=None)[source]

Convenience function for constructing a generic environment from a model.

class momba.gym.env.MombaEnv(explorer, *, renderer=None)[source]

Implementation of an OpenAI Gym environment.

fork()[source]

Forks the environment.

render(mode='human')[source]

Renders the environment assuming a render has been supplied.

reset()[source]

Resets the environment to an initial state and returns an initial observation.

step(action)[source]

Takes a decision in response to the last observation.