toyModel: Toy model data for using dNMF, dSVD, dsiNMF, djNMF, dPLS,...

View source: R/toyModel.R

toyModelR Documentation

Toy model data for using dNMF, dSVD, dsiNMF, djNMF, dPLS, dNTF, and dNTD

Description

The data is used to confirm that the algorithm are properly working.

Usage

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

Arguments

model

Single character string is specified. "dNMF", "dSVD", "dsiNMF_Easy", "dsiNMF_Hard", "dPLS_Easy", "dPLS_Hard", "dNTF", and "dNTD" are available (Default: "dNMF").

seeds

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

Value

If model is specified as "dNMF" or "dSVD" a matrix is generated. If model is specified as "dsiNMF_Easy", "dsiNMF_Hard", "dPLS_Easy", or "dPLS_Hard" three matrices are generated. Otherwise, a tensor is generated.

Author(s)

Koki Tsuyuzaki

See Also

dNMF,dSVD

Examples

matdata <- toyModel(model = "dNMF", seeds=123)

dcTensor documentation built on June 22, 2024, 6:57 p.m.