Skip to content

Commit fd6fe97

Browse files
authored
Use latest CmdStan (#2684)
1 parent f093a2d commit fd6fe97

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

python/prophet/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def sampling(self, stan_init, stan_data, samples, **kwargs) -> dict:
9090

9191

9292
class CmdStanPyBackend(IStanBackend):
93-
CMDSTAN_VERSION = "2.33.1"
93+
CMDSTAN_VERSION = "2.37.0"
9494
def __init__(self):
9595
import cmdstanpy
9696
# this must be set before super.__init__() for load_model to work on Windows

python/prophet/tests/test_prophet.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def test_fit_predict_large_numbers(self, large_numbers_ts, backend, scaling, exp
6464
test_days = 30
6565
train, test = train_test_split(large_numbers_ts, test_days)
6666
forecaster = Prophet(stan_backend=backend, scaling=scaling)
67-
forecaster.fit(train, seed=1237861298)
67+
forecaster.fit(train, seed=1237861298, sig_figs=6)
6868
np.random.seed(876543987)
6969
future = forecaster.make_future_dataframe(test_days, include_history=False)
7070
future = forecaster.predict(future)
@@ -248,7 +248,7 @@ def test_make_future_dataframe_include_history(self, daily_univariate_ts, backen
248248
train = daily_univariate_ts.head(468 // 2).copy()
249249
#cover history with NAs
250250
train.loc[train.sample(10).index, "y"] = np.nan
251-
251+
252252
forecaster = Prophet(stan_backend=backend)
253253
forecaster.fit(train)
254254
future = forecaster.make_future_dataframe(periods=3, freq="D", include_history=True)

python/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
MODEL_DIR = "stan"
2121
MODEL_TARGET_DIR = os.path.join("prophet", "stan_model")
2222

23-
CMDSTAN_VERSION = "2.33.1"
23+
CMDSTAN_VERSION = "2.37.0"
2424
BINARIES_DIR = "bin"
2525
BINARIES = ["diagnose", "print", "stanc", "stansummary"]
2626
TBB_PARENT = "stan/lib/stan_math/lib"

0 commit comments

Comments
 (0)