DiscreteMicrogridEnv.from_normalized#
- DiscreteMicrogridEnv.from_normalized(data_dict, act=False, obs=False)[source]#
De-normalize an action or observation.
Parameters#
- data_dictdict[str, list[int]]
Action or observation to de-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 de-normalizing an action.
- obsbool, default False
Set to True if you are de-normalizing an observation.
Returns#
- dict[str, list[float]]
De-normalized action.