Given a dbn.fit object, the size of the net and a folded data.set, performs a smoothing of a trajectory. Smoothing is the opposite of forecasting: given a starting point, predict backwards in time to obtain the time series that generated that point.
smooth_ts(
dt,
fit,
size,
obj_vars,
ini = dim(dt)[1],
len = ini - 1,
print_res = TRUE,
plot_res = TRUE,
prov_ev = NULL
)
data.table object with the TS data
dbn.fit object
number of time slices of the net
variables to be predicted. Should be in the oldest time step
starting point in the data set to smooth
length of the smoothing
if TRUE prints the mae and sd metrics of the smoothing
if TRUE plots the results of the smoothing
variables to be provided as evidence in each smoothing step. Should be in the oldest time step
the results of the smoothing