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
0985e9ce
Commit
0985e9ce
authored
Sep 09, 2021
by
Anna Warno
Browse files
predictions corrected
parent
9a995fad
Changes
3
Hide whitespace changes
Inline
Side-by-side
deployment/nbeats/main.py
View file @
0985e9ce
...
...
@@ -114,11 +114,11 @@ def main():
)
# msg1 = Msg()
# msg1.body = '[{"metric": "memory", "level": 3, "publish_rate":
1
0000}]'
# msg1.body = '[{"metric": "memory", "level": 3, "publish_rate":
3
0000}]'
# msg2 = Msg()
# msg2.body = (
# "{"
# + f'"metrics": ["memory"],"timestamp": {int(time.time())}, "epoch_start": {int(time.time()) + 30}, "number_of_forward_predictions": 8,"prediction_horizon":
2
0'
# + f'"metrics": ["memory"],"timestamp": {int(time.time())}, "epoch_start": {int(time.time()) + 30}, "number_of_forward_predictions": 8,"prediction_horizon":
3
0'
# + "}"
# )
...
...
deployment/nbeats/predict.py
View file @
0985e9ce
...
...
@@ -126,7 +126,7 @@ def main():
prediction_msgs
,
prediction
=
predict
(
metric
,
prediction_length
,
extra_data
=
predicti
on
s
,
extra_data
=
N
on
e
,
m
=
i
+
1
,
prediction_hor
=
prediction_horizon
,
timestamp
=
time_0
+
(
i
+
1
)
*
(
prediction_horizon
//
1000
),
...
...
@@ -136,10 +136,7 @@ def main():
print
(
f
"time_0 difference seconds
{
start_time
+
(
i
+
1
)
*
prediction_horizon
//
1000
-
int
(
time
.
time
())
}
"
)
# if predictions is not None:
# predictions = pd.concat(
# [predictions, prediction], ignore_index=True
# )
else
:
predictions
=
prediction
...
...
deployment/tft/predict.py
View file @
0985e9ce
...
...
@@ -126,7 +126,7 @@ def main():
prediction_msgs
,
prediction
=
predict
(
metric
,
prediction_length
,
extra_data
=
predicti
on
s
,
extra_data
=
N
on
e
,
m
=
i
+
1
,
prediction_hor
=
prediction_horizon
,
timestamp
=
time_0
+
(
i
+
1
)
*
(
prediction_horizon
//
1000
),
...
...
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