Description Usage Arguments Value Examples
Provide efficient algorithm to sample various random tensor graphs. This function allows general low-rank tensor setup in the sense that the core tensor can has arbitrary number of modes and different number of latent factors in each modes (Tucker Decomposition).
1 |
X |
a list of matrices X_i's. Each X_i is a n_i by k_i matrix. n_i is the dimension size in the i-th mode. k_i is the number of latent factors in the i-th mode. If X only has one matrix, the default reads it as a 3-mode tensor with same X_1 in all three modes. |
G |
the core tensor represented by a multi-dimensional array. Should not contain negative values. |
PoissonEdges |
boolean indicator. Allow poisson edges if |
returnParameters |
return parameter list or not. |
avgDeg |
specifies the expected degree. |
if returnParameters is TRUE, returns a list containing sampled tensor
as well as the ground truth latent factors X, core tensor G. The sampled tensor
is a tensorr::sptensor
object. The latent factors is a list of matrices. The core tensor
is a rTensor::Tensor
object.
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.