View source: R/sts-functions.R
| sts_one_step_predictive | R Documentation |
Given samples from the posterior over parameters, return the predictive
distribution over observations at each time T, given observations up
through time T-1.
sts_one_step_predictive( observed_time_series, model, parameter_samples, timesteps_are_event_shape = TRUE )
observed_time_series |
|
model |
An instance of |
parameter_samples |
|
timesteps_are_event_shape |
Deprecated, for backwards compatibility only. If False, the predictive distribution will return per-timestep probabilities Default value: TRUE. |
forecast_dist a tfd_mixture_same_family instance with event shape
list(num_timesteps) and batch shape tf$concat(list(sample_shape, model$batch_shape)), with
num_posterior_draws mixture components. The tth step represents the
forecast distribution p(observed_time_series[t] | observed_time_series[0:t-1], parameter_samples).
Other sts-functions:
sts_build_factored_surrogate_posterior(),
sts_build_factored_variational_loss(),
sts_decompose_by_component(),
sts_decompose_forecast_by_component(),
sts_fit_with_hmc(),
sts_forecast(),
sts_sample_uniform_initial_state()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.