fold_dt_rec {dbnR} | R Documentation |
Widens the dataset to take into account the t previous time slices
Description
This 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. Recursive version not exported, the user calls from the handler 'fold_dt'
Usage
fold_dt_rec(dt, n_prev, size, slice = 1)
Arguments
dt |
the data.table to be treated |
n_prev |
names of the previous time slice |
size |
number of time slices to unroll. Markovian 1 would be size 2 |
slice |
the current time slice being treated. Should not be modified when first calling. |
Value
the extended data.table
[Package dbnR version 0.7.8 Index]