powered by
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)
An rTensor object.
Number of split for k-fold cross validation (Default: 3).
Random seed to use for set.seed() (Default: 123).
Data will be dropped symmetrically (available only when matrix is specified, Default: FALSE).
Koki Tsuyuzaki
tensordata <- toyModel(model = "CP") str(kFoldMaskTensor(tensordata, k=5))
Run the code above in your browser using DataLab