mirror of
https://github.com/saymrwulf/prophet.git
synced 2026-09-16 22:20:23 +00:00
style fixes
This commit is contained in:
parent
34c0f80684
commit
1a7112268e
2 changed files with 7 additions and 7 deletions
|
|
@ -15,7 +15,7 @@ from datetime import timedelta
|
||||||
import pickle
|
import pickle
|
||||||
|
|
||||||
from matplotlib import pyplot as plt
|
from matplotlib import pyplot as plt
|
||||||
from matplotlib.dates import DateFormatter, MonthLocator, num2date
|
from matplotlib.dates import MonthLocator, num2date
|
||||||
from matplotlib.ticker import FuncFormatter
|
from matplotlib.ticker import FuncFormatter
|
||||||
|
|
||||||
import numpy as np
|
import numpy as np
|
||||||
|
|
@ -326,7 +326,7 @@ class Prophet(object):
|
||||||
# Makes an index so we can perform `get_loc` below.
|
# Makes an index so we can perform `get_loc` below.
|
||||||
row_index = pd.DatetimeIndex(dates)
|
row_index = pd.DatetimeIndex(dates)
|
||||||
|
|
||||||
for ix, row in self.holidays.iterrows():
|
for _ix, row in self.holidays.iterrows():
|
||||||
dt = row.ds.date()
|
dt = row.ds.date()
|
||||||
try:
|
try:
|
||||||
lw = int(row.get('lower_window', 0))
|
lw = int(row.get('lower_window', 0))
|
||||||
|
|
@ -726,7 +726,7 @@ class Prophet(object):
|
||||||
|
|
||||||
sim_values = {'yhat': [], 'trend': [], 'seasonal': []}
|
sim_values = {'yhat': [], 'trend': [], 'seasonal': []}
|
||||||
for i in range(n_iterations):
|
for i in range(n_iterations):
|
||||||
for j in range(samp_per_iter):
|
for _j in range(samp_per_iter):
|
||||||
sim = self.sample_model(df, seasonal_features, i)
|
sim = self.sample_model(df, seasonal_features, i)
|
||||||
for key in sim_values:
|
for key in sim_values:
|
||||||
sim_values[key].append(sim[key])
|
sim_values[key].append(sim[key])
|
||||||
|
|
@ -958,7 +958,7 @@ class Prophet(object):
|
||||||
Parameters
|
Parameters
|
||||||
----------
|
----------
|
||||||
fcst: pd.DataFrame output of self.predict.
|
fcst: pd.DataFrame output of self.predict.
|
||||||
ax: Optional matplotlib Axes to plot on. One will be created if this
|
ax: Optional matplotlib Axes to plot on. One will be created if this
|
||||||
is not provided.
|
is not provided.
|
||||||
uncertainty: Optional boolean to plot uncertainty intervals.
|
uncertainty: Optional boolean to plot uncertainty intervals.
|
||||||
|
|
||||||
|
|
@ -994,7 +994,7 @@ class Prophet(object):
|
||||||
Parameters
|
Parameters
|
||||||
----------
|
----------
|
||||||
fcst: pd.DataFrame output of self.predict.
|
fcst: pd.DataFrame output of self.predict.
|
||||||
ax: Optional matplotlib Axes to plot on. One will be created if this
|
ax: Optional matplotlib Axes to plot on. One will be created if this
|
||||||
is not provided.
|
is not provided.
|
||||||
uncertainty: Optional boolean to plot uncertainty intervals.
|
uncertainty: Optional boolean to plot uncertainty intervals.
|
||||||
|
|
||||||
|
|
@ -1032,7 +1032,7 @@ class Prophet(object):
|
||||||
Parameters
|
Parameters
|
||||||
----------
|
----------
|
||||||
fcst: pd.DataFrame output of self.predict.
|
fcst: pd.DataFrame output of self.predict.
|
||||||
ax: Optional matplotlib Axes to plot on. One will be created if
|
ax: Optional matplotlib Axes to plot on. One will be created if
|
||||||
this is not provided.
|
this is not provided.
|
||||||
uncertainty: Optional boolean to plot uncertainty intervals.
|
uncertainty: Optional boolean to plot uncertainty intervals.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
# All rights reserved.
|
# All rights reserved.
|
||||||
#
|
#
|
||||||
# This source code is licensed under the BSD-style license found in the
|
# This source code is licensed under the BSD-style license found in the
|
||||||
# LICENSE file in the root directory of this source tree. An additional grant
|
# LICENSE file in the root directory of this source tree. An additional grant
|
||||||
# of patent rights can be found in the PATENTS file in the same directory.
|
# of patent rights can be found in the PATENTS file in the same directory.
|
||||||
|
|
||||||
from __future__ import absolute_import
|
from __future__ import absolute_import
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue