TEMM {TensorClustering} | R Documentation |
Fit the Tensor Envelope Mixture Model (TEMM)
Description
Fit the Tensor Envelope Mixture Model (TEMM)
Usage
TEMM(Xn, u, K, initial = "kmeans", iter.max = 500,
stop = 1e-3, trueY = NULL, print = FALSE)
Arguments
Xn |
The tensor for clustering, should be array type, the last dimension is the sample size |
u |
A vector of envelope dimension |
K |
Number of clusters, greater than or equal to |
initial |
Initialization meth0d for the regularized EM algorithm. Default value is "kmeans". |
iter.max |
Maximum number of iterations. Default value is |
stop |
Convergence threshold of relative change in cluster means. Default value is |
trueY |
A vector of true cluster labels of each observation. Default value is NULL. |
print |
Whether to print information including current iteration number, relative change in cluster means
and clustering error ( |
Details
The TEMM
function fits the Tensor Envelope Mixture Model (TEMM) through a subspace-regularized EM algorithm. For mode , let
be an orthogonal matrix where
,
, represents the material part. Specifically, the material part
follows a tensor normal mixture distribution, while the immaterial part
is unimodal, independent of the material part and hence can be eliminated without loss of clustering information. Dimension reduction is achieved by focusing on the material part
. Collectively, the joint reduction from each mode is
where and
are the dimension-reduced clustering parameters and
does not vary with cluster index
. In the E-step, the membership weights are evaluated as
where denotes the conditional probability density function of
within the
-th cluster. In the subspace-regularized M-step, the envelope subspace is iteratively estimated through a Grassmann manifold optimization that minimize the following log-likelihood-based objective function:
where and
are given by
The intermediate estimators can be viewed the mode-
conditional variation estimate of
and
is the mode-
marginal variation estimate of
.
Value
id |
A vector of estimated labels. |
pi |
A vector of estimated prior probabilities for clusters. |
eta |
A |
Mu.est |
A list of estimated cluster means. |
SIG.est |
A list of estimated covariance matrices. |
Mm |
Estimation of |
Nm |
Estimation of |
Gamma.est |
A list of estimated envelope basis. |
PGamma.est |
A list of envelope projection matrices. |
Author(s)
Kai Deng, Yuqing Pan, Xin Zhang and Qing Mai
References
Deng, K. and Zhang, X. (2021). Tensor Envelope Mixture Model for Simultaneous Clustering and Multiway Dimension Reduction. Biometrics.
See Also
TGMM
, tune_u_sep
, tune_u_joint
Examples
A = array(c(rep(1,20),rep(2,20))+rnorm(40),dim=c(2,2,10))
myfit = TEMM(A,u=c(2,2),K=2)