Skip to content

RewardCalculator

Bases: CybORGLogger

Base class for all reward calculators

Attributes:

Name Type Description
agent_name str
init_state
init_obs
previous_state
previous_obs
flat bool

by default False

time int

by default 0

Functions

__init__

__init__(agent_name: str)

Parameters:

Name Type Description Default
agent_name str

agent's name

required

calculate_simulation_reward

calculate_simulation_reward(env_controller)

Calculates the reward from the environment controller