| [ Web Proxy ] |
| Viewing: https://raw.githubusercontent.com/RTDataScience/docker-python/master/tests/test_fbprophet.py | [Back] [Original] |
import unittest
import numpy as np
import pandas as pd
from fbprophet import Prophet
class TestFbProphet(unittest.TestCase):
def test_fit(self):
train = pd.DataFrame({
'ds': np.array(['2012-05-18', '2012-05-20']),
'y': np.array([38.23, 21.25])
})
forecaster = Prophet(mcmc_samples=1)
forecaster.fit(train, control={'adapt_engaged': False})
| Web Proxy Viewer | New URL | Original Page |