ContinuousMicrogridEnv.to_normalized#
- ContinuousMicrogridEnv.to_normalized(data_dict, act=False, obs=False)[source]#
Normalize an action or observation.
Parameters#
- data_dictdict[str, list[int]]
Action or observation to normalize. Dictionary keys are names of the modules while dictionary values are lists containing an action corresponding to all modules with that name.
- actbool, default False
Set to True if you are normalizing an action.
- obsbool, default False
Set to True if you are normalizing an observation.
Returns#
- dict[str, list[float]]
Normalized action.