Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
2
2022-211
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
2022-211
2022-211
Commits
6516832c
Commit
6516832c
authored
May 13, 2022
by
H.C.K. De Silva
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Delete fbp.py
parent
de338fda
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
20 deletions
+0
-20
fbp.py
fbp.py
+0
-20
No files found.
fbp.py
deleted
100644 → 0
View file @
de338fda
from
prophet
import
Prophet
import
pandas
as
pd
import
json
from
prophet.serialize
import
model_to_json
,
model_from_json
df
=
pd
.
read_csv
(
'temp.csv'
)
df
.
head
()
m
=
Prophet
()
m
.
fit
(
df
)
future
=
m
.
make_future_dataframe
(
periods
=
7
)
future
.
tail
()
forecast
=
m
.
predict
(
future
)
forecast
[[
'ds'
,
'yhat'
,
'yhat_lower'
,
'yhat_upper'
]]
.
tail
()
print
(
forecast
[
'yhat'
][
-
7
:])
with
open
(
'trained_models/serialized_model.json'
,
'w'
)
as
fout
:
json
.
dump
(
model_to_json
(
m
),
fout
)
# Save model
\ No newline at end of file
Write
Preview
Markdown
is supported
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