mirror of
https://github.com/saymrwulf/prophet.git
synced 2026-11-18 08:53:42 +00:00
minor style changes
This commit is contained in:
parent
0b6c2dc6af
commit
b1c6f5dd9b
2 changed files with 4 additions and 5 deletions
|
|
@ -354,9 +354,9 @@ class Prophet(object):
|
||||||
'Changepoints must fall within training data.')
|
'Changepoints must fall within training data.')
|
||||||
else:
|
else:
|
||||||
# Place potential changepoints evenly through first
|
# Place potential changepoints evenly through first
|
||||||
# {changepoint_range} proportion of the history
|
# `changepoint_range` proportion of the history
|
||||||
hist_size = int(np.floor(
|
hist_size = int(np.floor(self.history.shape[0]
|
||||||
self.history.shape[0] * self.changepoint_range))
|
* self.changepoint_range))
|
||||||
if self.n_changepoints + 1 > hist_size:
|
if self.n_changepoints + 1 > hist_size:
|
||||||
self.n_changepoints = hist_size - 1
|
self.n_changepoints = hist_size - 1
|
||||||
logger.info(
|
logger.info(
|
||||||
|
|
|
||||||
|
|
@ -129,7 +129,6 @@ class TestProphet(TestCase):
|
||||||
m = Prophet()
|
m = Prophet()
|
||||||
m.fit(df)
|
m.fit(df)
|
||||||
|
|
||||||
|
|
||||||
def test_logistic_floor(self):
|
def test_logistic_floor(self):
|
||||||
m = Prophet(growth='logistic')
|
m = Prophet(growth='logistic')
|
||||||
N = DATA.shape[0]
|
N = DATA.shape[0]
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue