Split a multivariate dataset sequence into samples

split_seq(x, y, n_steps)

Arguments

x

features dataset to split into samples as multivariate sequences

y

target dataset with numeric values

n_steps

Number of steps to split into samples

Value

Returns two data sets: one with the information of the x and another with the information of the y

Author

Catherine Rincon, catherine.rincon@udea.edu.co

Examples

# Example 1
# Generating dataset to split into samples as multivariate dataset

x <- matrix(1:30, nrow=10, ncol=3, byrow=TRUE)
y <- matrix(rpois(n=10, lambda=5), nrow=1)
a <- split_seq(x, y, 3)