Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Melodic
morphemic-preprocessor
Commits
287210d3
Commit
287210d3
authored
Jun 08, 2021
by
Anna Warno
Browse files
time 0 corrected
parent
edcb8ea9
Changes
2
Show whitespace changes
Inline
Side-by-side
deployment/nbeats/predict.py
View file @
287210d3
...
...
@@ -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"
]
...
...
deployment/tft/predict.py
View file @
287210d3
...
...
@@ -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"
]
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment