-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpreprocessing.py
More file actions
41 lines (27 loc) · 871 Bytes
/
preprocessing.py
File metadata and controls
41 lines (27 loc) · 871 Bytes
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
import numpy as np
from utils.get_data import preprocess_data, dir_list
from utils.build_graphs import randpts_graphs,mpeg7_graphs,mnist_graphs
import random
preprocess_data(dir_list)
# make sure we have the same seeds as main experiments
random.seed(423652346)
np.random.seed(423652346)
randpts_graphs()
#Change eps according to how close we want the approx
eps = .001
#Change to corresponding eps
graphs_dir = "graphs_001_approx"
mpeg7_graphs(eps, graphs_dir)
eps = .005
graphs_dir = "graphs_005_approx"
mpeg7_graphs(eps, graphs_dir)
#Change eps according to how close we want the approx
eps = .001
#Change to corresponding eps
graphs_dir = "graphs_001_approx"
mnist_graphs(eps, graphs_dir)
#Change eps according to how close we want the approx
eps = .005
#Change to corresponding eps
graphs_dir = "graphs_005_approx"
mnist_graphs(eps, graphs_dir)