Description Usage Arguments Value Examples
View source: R/embeddingFunctions.R
Auxiliary function to embed a 2D matrix into a 3D tensor.
1 | matrix2Tensor3D(X, time_window, shift = 1, padNA = FALSE)
|
X |
|
time_window |
|
shift |
|
padNA |
|
3D Tensor (Samples,Time Window,Features) containing the embedded form of X (the second dimension is fixed to time_window)
1 2 3 | X <- EuStockMarkets
time_window <- 5
X_windowed <- matrix2Tensor3D(X,time_window,time_window)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.