Skip to content
GitLab
Menu
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
edcb8ea9
Commit
edcb8ea9
authored
Jun 08, 2021
by
Anna Warno
Browse files
epoch 0 time corrected
parent
d8816aea
Changes
3
Hide whitespace changes
Inline
Side-by-side
deployment/nbeats/predict.py
View file @
edcb8ea9
...
...
@@ -127,6 +127,7 @@ def main():
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
(
...
...
deployment/tft/main.py
View file @
edcb8ea9
...
...
@@ -89,14 +89,14 @@ def main():
)
# msg1 = Msg()
# msg1.body = '[{"metric": "cpu_usage", "level": 3, "publish_rate": 6000}]'
# msg1.body = '[{"metric": "cpu_usage", "level": 3, "publish_rate": 6000
0
}]'
# msg2 = Msg()
# msg2.body = """{
# "metrics": ["cpu_usage"],
# "timestamp": 0,
# "epoch_start": 0,
# "number_of_forward_predictions": 8,
# "prediction_horizon":
120
00}"""
# "prediction_horizon":
6
00}"""
# StartListener(start_conn.conn, START_APP_TOPIC).on_message(msg1)
# StartForecastingListener(start_conn.conn, START_APP_TOPIC).on_message(msg2)
...
...
deployment/tft/predict.py
View file @
edcb8ea9
...
...
@@ -127,6 +127,7 @@ def main():
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
(
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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