Enable cross validation on a deserialized model (#1709)

This commit is contained in:
Ben Letham 2021-03-03 18:40:27 -08:00
parent bbc44bf67c
commit eb6b8f60ec

View file

@ -301,7 +301,10 @@ def prophet_copy(m, cutoff=None):
mcmc_samples=m.mcmc_samples,
interval_width=m.interval_width,
uncertainty_samples=m.uncertainty_samples,
stan_backend=m.stan_backend.get_type()
stan_backend=(
m.stan_backend.get_type() if m.stan_backend is not None
else None
),
)
m2.extra_regressors = deepcopy(m.extra_regressors)
m2.seasonalities = deepcopy(m.seasonalities)