Description Usage Arguments Value Examples
View source: R/embeddingFunctions.R
Auxiliary function to flatten 3D tensor into a 2D matrix, discarding overlapping data.
1 | tensor3D2matrix(X, shift = 1)
|
X |
|
shift |
|
2D Matrix (Samples,Features) obtained by "unrolling" the tensor
1 2 3 4 | X <- EuStockMarkets
time_window <- 5
X_windowed <- matrix2Tensor3D(X,time_window,time_window)
X_reconstructed <- tensor3D2matrix(X_windowed,time_window)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.