Description Usage Arguments Value Examples
Returns a toy model with the specified size, sparsity and noise generated either with a CP or Tucker factorization model. Values in predictor matrices (X1, X2, X3) are pulled from a standard normal distribuion. Dummy names are given to the predictors.
1 | mk_toy(params)
|
params |
list of parameters created with |
a list containing elements of the model
Input data for mode 1
Input data for mode 2
Input data for mode 3
Projection matrix for mode 1
Projection matrix for mode 2
Projection matrix for mode 3
Latent matrix for mode 1
Latent matrix for mode 2
Latent matrix for mode 3
Core tensor if params$decomp=='Tucker'
Response tensor
1 2 3 4 5 | data.params <- get_data_params(c('decomp=Tucker'))
toy <- mk_toy(data.params)
data.params <- get_data_params(c('decomp=CP'))
toy <- mk_toy(data.params)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.