File tree Expand file tree Collapse file tree 6 files changed +18
-19
lines changed
Expand file tree Collapse file tree 6 files changed +18
-19
lines changed Original file line number Diff line number Diff line change @@ -549,7 +549,7 @@ def plot_bt_predictions2(
549549 )
550550 if fix_xylim and ylim is not None :
551551 ax .set_xlim (xlim )
552- ax .set_ylim (* ylim ) # unpack the tuple
552+ ax .set_ylim (* ylim ) # unpack the tuple
553553
554554 ax .legend ()
555555 plt .suptitle (title , fontsize = fontsize )
Original file line number Diff line number Diff line change @@ -751,9 +751,10 @@ def predict(
751751 global_trend_level + global_trend_slope * idx * self ._time_delta
752752 )
753753 elif self .global_trend_option == GlobalTrendOption .loglinear .name :
754- full_global_trend [:, idx ] = (
755- global_trend_level
756- + global_trend_slope * np .log (1 + idx * self ._time_delta )
754+ full_global_trend [
755+ :, idx
756+ ] = global_trend_level + global_trend_slope * np .log (
757+ 1 + idx * self ._time_delta
757758 )
758759 elif self .global_trend_option == GlobalTrendOption .logistic .name :
759760 full_global_trend [:, idx ] = self .global_floor + (
Original file line number Diff line number Diff line change @@ -189,9 +189,9 @@ def set_init_values(self):
189189 init_values = None
190190 if len (self ._seasonality ) > 1 and self .num_of_regressors > 0 :
191191 init_values = dict ()
192- init_values [RegressionSamplingParameters . COEFFICIENTS_KNOT . value ] = (
193- np . zeros (( self . num_of_regressors , self . num_knots_coefficients ))
194- )
192+ init_values [
193+ RegressionSamplingParameters . COEFFICIENTS_KNOT . value
194+ ] = np . zeros (( self . num_of_regressors , self . num_knots_coefficients ) )
195195 self ._init_values = init_values
196196
197197 def _set_default_args (self ):
@@ -496,9 +496,9 @@ def predict(
496496 seas_regression = np .sum (
497497 seas_coef * seasonal_regressor_matrix .transpose (1 , 0 ), axis = - 2
498498 )
499- seas_decomp ["seasonality_{}" . format ( self . _seasonality [ idx ])] = (
500- seas_regression
501- )
499+ seas_decomp [
500+ "seasonality_{}" . format ( self . _seasonality [ idx ])
501+ ] = seas_regression
502502 pos += len (cols )
503503 total_seas_regression += seas_regression
504504 if include_error :
Original file line number Diff line number Diff line change @@ -231,9 +231,9 @@ def set_init_values(self):
231231 - 1.0 ,
232232 1.0 ,
233233 )
234- init_values [LatentSamplingParameters . INITIAL_SEASONALITY . value ] = (
235- init_sea
236- )
234+ init_values [
235+ LatentSamplingParameters . INITIAL_SEASONALITY . value
236+ ] = init_sea
237237 if self .num_of_positive_regressors > 0 :
238238 x = np .clip (
239239 np .random .normal (
Original file line number Diff line number Diff line change 11import numpy as np
2- import pandas as pd
32from statsmodels .tsa .arima_process import ArmaProcess
43import math
5- from math import pi
64from orbit .exceptions import IllegalArgument
75
86
Original file line number Diff line number Diff line change @@ -3,12 +3,12 @@ cmdstanpy>=1.2.1
33importlib_resources
44ipywidgets
55matplotlib >= 3.3.2
6- numpy >= 1.18
7- pandas >= 1.0.3
6+ numpy >= 1.26.4
7+ pandas >= 2.3.0
88pyro-ppl >= 1.4.0
99scipy >= 1.4.1
1010seaborn >= 0.10.0
1111setuptools >= 42
12- statsmodels >= 0.11.1
13- torch >= 1.11.0
12+ statsmodels >= 0.14.4
13+ torch
1414tqdm >= 4.36.1
You can’t perform that action at this time.
0 commit comments