You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
epochs_before_pred (int, optional): Epochs to monitor before outputting predicted consumption. Set to -1 for all epochs. Set to 0 for no prediction.
263
262
monitor_epochs (int, optional): Total number of epochs to monitor. Outputs actual consumption when reached. Set to -1 for all epochs. Cannot be less than `epochs_before_pred` or equal to 0.
@@ -461,6 +460,10 @@ def stop(self):
461
460
self._output_actual()
462
461
self._delete()
463
462
463
+
defset_api_keys(self, api_keys):
464
+
self.api_keys=api_keys
465
+
self._get_fetcher()
466
+
464
467
def_handle_error(self, error):
465
468
err_str=traceback.format_exc()
466
469
ifself.ignore_errors:
@@ -508,7 +511,7 @@ def _output_actual(self):
508
511
)
509
512
else:
510
513
self._output_energy(
511
-
f"Actual consumption for {self.epoch_counter+1} epoch(s):",
514
+
f"Actual consumption for {self.epoch_counter} epoch(s):",
0 commit comments