FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
docker-python/tests/test_prophet.py at tmp-gpu-test · Kaggle/docker-python · GitHub
Kaggle
/
docker-python
Public
Notifications
You must be signed in to change notification settings
Fork
1k
Star
2.7k
Code
Issues
25
Pull requests
8
Actions
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
docker-python
/
tests
/
test_prophet.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
18 lines (13 loc) · 542 Bytes
Breadcrumbs
docker-python
/
tests
/
test_prophet.py
Copy path
File metadata and controls
18 lines (13 loc) · 542 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import
unittest
import
numpy
as
np
import
pandas
as
pd
from
prophet
import
Prophet
class
TestProphet
(
unittest
.
TestCase
):
def
test_fit
(
self
):
train
=
pd
.
DataFrame
({
'ds'
:
np
.
array
([
'2012-05-18'
,
'2012-05-19'
,
'2012-05-20'
,
'2012-05-21'
,
'2012-05-22'
]),
'y'
:
np
.
array
([
38.23
,
21.25
,
20.18
,
20.01
,
19.02
])
})
forecaster
=
Prophet
(
mcmc_samples
=
1
)
forecaster
.
fit
(
train
,
adapt_engaged
=
False
)
self
.
assertEqual
(
len
(
train
)
+
1
,
len
(
forecaster
.
make_future_dataframe
(
periods
=
1
)))
Back
|
FazBrowse Home
|
New Git URL