-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathdebug_easydata.py
48 lines (41 loc) · 1.01 KB
/
debug_easydata.py
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
45
46
47
48
import sys
import os
import glob
import parallel_GPLVM
sys.path.append('./tools/')
import show_embeddings
path = './easydata/'
# Parameters to adjust
Q = 2
num_inducing = 10
# First delete all current inputs & embeddings
filelist = glob.glob(path + "/inputs/*")
filelist.extend(glob.glob(path + "/embeddings/*"))
for f in filelist:
os.remove(f)
options = {}
options['input'] = path + '/inputs/'
options['embeddings'] = path + '/embeddings/'
options['parallel'] = 'local'
options['iterations'] = 5
options['statistics'] = path + '/tmp'
options['tmp'] = path + '/tmp'
options['M'] = num_inducing
options['Q'] = Q
options['D'] = 3
options['fixed_embeddings'] = False
options['keep'] = True
filelist = (glob.glob(path + "/embeddings/*"))
for f in filelist:
os.remove(f)
parallel_GPLVM.main(options)
class empty:
pass
disp_opt = empty()
disp_opt.verbose = True
disp_opt.dimension = [0, 1]
disp_opt.output_dimension = [0, 1, 2]
disp_opt.plot2d = True
disp_opt.plot3d = False
args = [path]
show_embeddings.run(disp_opt, args)