Skip to content

Results

Results class that is returned after each step

Only the observation attribute is used in CC4.

Attributes:

Name Type Description
observation Dict[str, _]

observation data for the scenario host network

Functions

__init__

__init__(observation: dict = None, done: bool = None, reward: float = None, info: float = None, parameter_mask: float = None, action_space: float = None, error: Exception = None, error_msg: str = None, next_observation: str = None, action: str = None, action_name: str = None)

Parameters:

Name Type Description Default
observation dict

observation data for the scenario host network

None
done bool
None
reward float
None
info
None
parameter_mask
None
action_space
None
error Exception

contains any exception produced by the environment

None
error_msg str

error message for the exception

None
next_observation Dict[str, _]
None
action
None
action_name str
None

copy

copy()

Return a new instance of Results with the same class attributes.

Returns:

Type Description
Results

a duplicate Results object

has_error

has_error()

Return class attribute error