toyModel: Toy model data for using NMF, NTF, and NTD

View source: R/toyModel.R

toyModelR Documentation

Toy model data for using NMF, NTF, and NTD

Description

The data is used for confirming the algorithm are properly working.

Usage

toyModel(model = "CP", seeds=123)

Arguments

model

Single character string is specified. "NMF", "CP", and "Tucker" are available (Default: "CP").

seeds

Random number for setting set.seeds in the function (Default: 123).

Value

If model is specified as "NMF", a matrix is generated. Otherwise, a tensor is generated.

Author(s)

Koki Tsuyuzaki

See Also

NMF, NTF, NTD

Examples

matdata <- toyModel(model = "NMF", seeds=123)
tensordata1 <- toyModel(model = "CP", seeds=123)
tensordata2 <- toyModel(model = "Tucker", seeds=123)

nnTensor documentation built on July 9, 2023, 7:37 p.m.