citylearn.occupant module

class citylearn.occupant.LogisticRegressionOccupant(setpoint_increase_model_filepath: Path | str, setpoint_decrease_model_filepath: Path | str, delta_output_map: Mapping[int, float], parameters: LogisticRegressionOccupantParameters, **kwargs)[source]

Bases: Occupant

property delta_output_map: Mapping[int, float]
predict(x: Tuple[float, List[List[float]]]) float[source]
property probabilities: Mapping[str, float]
reset()[source]

Reset environment to initial state.

Calls reset_time_step.

Notes

Override in subclass for custom implementation when reseting environment.

property setpoint_decrease_model_filepath: Path | str
property setpoint_increase_model_filepath: Path | str
class citylearn.occupant.Occupant(**kwargs)[source]

Bases: Environment

predict() float[source]