-
Notifications
You must be signed in to change notification settings - Fork 7
/
defstr.m
executable file
·44 lines (35 loc) · 1.13 KB
/
defstr.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
function [str]=defstr(type)
type=lower(type);
switch type
%% For input format
case 'input'
str={'ktensor','ttensor'};
%% Tensor decomposition model str
case 'tdmodel'
% str={'CP','Tucker','Parafac2','BCD','ParaTucker','DEDICOM'};
str={'CP','Tucker','PMF','BCD'};
%% Tucker mode constraint type string
case 'tuckerconstr'
str={'None','Penalized Matrix Factorization'}; %% Must no more than five
%% Algorithms
case 'penalized matrix factorization'
[paraList PMFalgs]=PMFalgInit;
str={'Free',PMFalgs(:).details};
%% core tensor
case 'gencore'
str={'Auto';'Uniform';'Gaussian';'Abs. Gaussian'};
%% ortho
% case 'orthogonality'
% str={'Free','orth'};
%
% %% SmoCA
% case 'smoothness'
% str={'Free','smooth'};
case 'tdalab'
str='RIKEN TDALAB for Tensor Analysis';
case 'marker'
str='sd>op+*xv.<^ph';
otherwise
error('Unsuported input parameter.');
end
end