Description Usage Arguments Value Author(s) See Also
This function will estimate a rank-1 tensor using independent
unimodal priors on the components via a variational EM
algorithm. It will subtract off the posterior mean from the data
array, then repeat the estimation procedure on the residuals. It
continues to do this until the maximum cp-rank k
is reached
or when all of the components are estimated to be 0.
1 2 3 4 |
Y |
An array of numerics. The data. |
k |
The maximum cp-rank of the mean tensor. |
tol |
A positive numeric. The stopping criterion for the VEM. |
itermax |
A positive integer. The maximum number of iterations to run the VEM |
alpha |
A non-negative numeric. The prior shape parameter for the variance. Defaults to zero. |
beta |
A non-negative numeric. The prior rate parameter for the variance. Defaults to zero. |
mixcompdist |
The mixing distribution to assume. Defaults to
normal. Options are those available in the |
var_type |
A string. What variance model should we assume?
Options are homoscedastic noise ( |
nullweight |
A numeric greater than or equal to 1. The penalty term on the probability of zero. |
print_update |
A logical. Should we print notifications on how far along the optimization is? |
known_factors |
A list of known factors for the modes
indicated in |
known_modes |
A vector of integers. The modes that are
known. Should be the same length as |
homo_modes |
A vector of integers. If |
factor_list
: A list of matrices of
numerics. factor_list[[i]][, j]
contains the jth
factor of the ith mode.
sigma_est
: If var_type = "homoscedastic"
, then
sigma_est
is a vector of numerics. sigma_est[i]
is the estimate of the precision during the i iteration
of the greedy algorithm. Only the last one (if that) should
actually be used for any sort of precision estimate.
If var_type = "kronecker"
, then sigma_est
is a
list of matices. sigma_est[[i]][, j]
is the estimate of
the variances for the jth mode during the ith run
of the greedy algorithm. Only the final columns (if those) of
these matrices should actually be used as any sort of precision
estimate.
rank_final
A non-negative integer. The final estimated
cp-rank of the mean.
David Gerard
tflash
for fitting the rank-1 mean tensor
model.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.