Skip to content

Commit 922f33d

Browse files
committed
update dependency and formatting
1 parent 4491ce8 commit 922f33d

File tree

6 files changed

+18
-19
lines changed

6 files changed

+18
-19
lines changed

orbit/diagnostics/plot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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)

orbit/template/dlt.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff 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 + (

orbit/template/ktrlite.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff 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:

orbit/template/lgt.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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(

orbit/utils/simulation.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
import numpy as np
2-
import pandas as pd
32
from statsmodels.tsa.arima_process import ArmaProcess
43
import math
5-
from math import pi
64
from orbit.exceptions import IllegalArgument
75

86

requirements.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ cmdstanpy>=1.2.1
33
importlib_resources
44
ipywidgets
55
matplotlib>=3.3.2
6-
numpy>=1.18
7-
pandas>=1.0.3
6+
numpy>=1.26.4
7+
pandas>=2.3.0
88
pyro-ppl>=1.4.0
99
scipy>=1.4.1
1010
seaborn>=0.10.0
1111
setuptools>=42
12-
statsmodels>=0.11.1
13-
torch>=1.11.0
12+
statsmodels>=0.14.4
13+
torch
1414
tqdm>=4.36.1

0 commit comments

Comments
 (0)