kFoldMaskTensor: Mask tensors generator to perform k-fold cross validation

View source: R/kFoldMaskTensor.R

kFoldMaskTensorR Documentation

Mask tensors generator to perform k-fold cross validation

Description

The output multiple mask tensors can be immediately specified as the argument M for NTF() or NTD().

Usage

kFoldMaskTensor(X, k=3, seeds=123, sym=FALSE)

Arguments

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).

Author(s)

Koki Tsuyuzaki

Examples

tensordata <- toyModel(model = "CP")

str(kFoldMaskTensor(tensordata, k=5))

nnTensor documentation built on June 22, 2024, 6:52 p.m.