Perform tensor clustering via tensor block model (TBM) method.
tbmClustering(
x,
k,
r,
l,
lambda = 0,
max.iter = 1000,
threshold = 1e-10,
sim.times = 1,
trace = FALSE,
Cs.init = NULL,
Ds.init = NULL,
Es.init = NULL,
method = "L0"
)an order-3 data tensor
an positive integer, the numbers of clusters at mode 1
an positive integer, the numbers of clusters at mode 2
an positive integer, the numbers of clusters at mode 3
a numeric value, regularization coefficient
a positive integer, the maximum numbers of iteration
a positive small numeric value for convergence threshold
the number of simulation replicates when performing clustering
logic value, print result per each iteration if TRUE
vector or NULL, initial cluster label assignment at mode 1
vector or NULL, initial cluster label assignment at mode 2
vector or NULL, initial cluster label assignment at mode 3
two options: "L0", "L1". "L0" indicates L0 penalty, and "L1" indicates Lasso penalty
a list
judgeX estimated underlying signal tensor
Cs clustering result at mode 1
Ds clustering result at mode 2
Es clustering result at mode 3
mus estimated block means
M. Wang and Y. Zeng, "Multiway clustering via tensoe block models". Advances in Neural Information Processing System 32 (NeurIPS), 715-725, 2019.
# NOT RUN {
x = getOrder3Tensor(20,20,20,2,2,2)$x
tbmClustering(x,2,2,2)
# }
Run the code above in your browser using DataLab