Commit 287210d3 authored by Anna Warno's avatar Anna Warno
Browse files

time 0 corrected

parent edcb8ea9
......@@ -96,11 +96,10 @@ def main():
tl = Timeloop()
time_0 = msg["epoch_start"]
dataset_preprocessor.prepare_csv()
for metric in predicted_metrics:
predictions = None
global time_0
time_0 = time_0 + prediction_cycle * 1000
for i in range(number_of_forward_predictions[metric]):
prediction_msgs, prediction = predict(
......@@ -165,6 +164,7 @@ if __name__ == "__main__":
}
for m in msg["all_metrics"]
}
time_0 = msg["epoch_start"]
prediction_horizon = msg["prediction_horizon"] * 1000
predicted_metrics = set(msg["metrics"])
prediction_cycle = msg["prediction_horizon"]
......
......@@ -96,11 +96,10 @@ def main():
tl = Timeloop()
time_0 = msg["epoch_start"]
dataset_preprocessor.prepare_csv()
for metric in predicted_metrics:
predictions = None
global time_0
time_0 = time_0 + prediction_cycle * 1000
for i in range(number_of_forward_predictions[metric]):
prediction_msgs, prediction = predict(
......@@ -165,6 +164,7 @@ if __name__ == "__main__":
}
for m in msg["all_metrics"]
}
time_0 = msg["epoch_start"]
prediction_horizon = msg["prediction_horizon"] * 1000
predicted_metrics = set(msg["metrics"])
prediction_cycle = msg["prediction_horizon"]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment