Skip to content

Commit 411d319

Browse files
committed
disable offset
1 parent 03bec2f commit 411d319

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

esrnn/forecasting_esrnn.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ def set_training_data(self, *, inputs: Inputs, outputs: Outputs) -> None:
323323
):
324324
self._integer_time = True
325325
data[self._time_column] = pd.to_datetime(
326-
data[self._time_column] - 1, unit="D"
326+
data[self._time_column], unit="D"
327327
)
328328
else:
329329
data[self._time_column] = pd.to_datetime(
@@ -448,7 +448,7 @@ def produce(self, *, inputs: Inputs, timeout: float = None, iterations: int = No
448448
# if datetime columns are integers, parse as # of days
449449
if self._integer_time:
450450
inputs_copy[self._time_column] = pd.to_datetime(
451-
inputs_copy[self._time_column] - 1, unit="D"
451+
inputs_copy[self._time_column], unit="D"
452452
)
453453
else:
454454
inputs_copy[self._time_column] = pd.to_datetime(

0 commit comments

Comments
 (0)