-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathexample1.m
executable file
·31 lines (23 loc) · 934 Bytes
/
example1.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
% =======================================================================
% author: Xueqing Liu
% =======================================================================
% Chi Wang et al., Towards Interactive Construction of Topical Hierarchy: A
% Recursive Tensor Decomposition Approach, KDD 2015.
% =================================================
% Example 1: EXP example
% ==================================================
global vocabulary parentfolder datafolder
parentfolder = '.';
datafolder = 'data';
dataname = 'dblptitle';
path([parentfolder, '/DataProcess/readdata/'], path);
path([parentfolder, '/Library/'], path);
LoadData;
SetParameters;
t.tree = node([], [], [], '1', 1:size(vocabulary, 1));
EXP(t, [], 3, dwmat, options);
EXP(t, [2], 2, dwmat, options);
fid = fopen([datafolder, '/', dataname '/tree.txt'], 'w');
DFSprint(t.tree, fid, '');
fclose(fid);