View source: R/kFoldMaskTensor.R
kFoldMaskTensor | R Documentation |
The output multiple mask tensors can be immediately specified as the argument M for NTF() or NTD().
kFoldMaskTensor(X, k=3, seeds=123, sym=FALSE)
X |
An rTensor object. |
k |
Number of split for k-fold cross validation (Default: 3). |
seeds |
Random seed to use for set.seed() (Default: 123). |
sym |
Data will be dropped symmetrically (available only when matrix is specified, Default: FALSE). |
Koki Tsuyuzaki
tensordata <- toyModel(model = "CP")
str(kFoldMaskTensor(tensordata, k=5))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.