fold_dt {dbnR} | R Documentation |
Widens the dataset to take into account the t previous time slices
Description
This function will widen the dataset to put the t previous time slices in each row, so that it can be used to learn temporal arcs in the second phase of the dmmhc.
Usage
fold_dt(dt, size)
Arguments
dt |
the data.table to be treated |
size |
number of time slices to unroll. Markovian 1 would be size 2 |
Value
the extended data.table
Examples
data(motor)
size <- 3
f_dt <- fold_dt(motor, size)
[Package dbnR version 0.7.9 Index]