mirror of
https://github.com/saymrwulf/prophet.git
synced 2026-06-03 23:49:47 +00:00
Enable cross validation on a deserialized model (#1709)
This commit is contained in:
parent
bbc44bf67c
commit
eb6b8f60ec
1 changed files with 4 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue