mirror of
https://github.com/kennethreitz/coinbin.org.git
synced 2026-06-05 23:10:17 +00:00
+1
-2
@@ -46,7 +46,6 @@ class MWT(object):
|
||||
return func
|
||||
|
||||
|
||||
@MWT(timeout=120)
|
||||
def get_predictions(coin):
|
||||
|
||||
c = Coin(coin.lower())
|
||||
@@ -64,7 +63,7 @@ def get_predictions(coin):
|
||||
# log-transform y
|
||||
df['y'] = np.log(df['y'])
|
||||
|
||||
model = Prophet(weekly_seasonality=True)
|
||||
model = Prophet(weekly_seasonality=True, mothly_seasonality=True, yearly_seasonality=True)
|
||||
model.fit(df)
|
||||
|
||||
future_data = model.make_future_dataframe(periods=6, freq='h')
|
||||
|
||||
Reference in New Issue
Block a user