summaryrefslogtreecommitdiff
path: root/python/test/test_approx.py
blob: 353436c1182d890a05288fabc4506c3f465b82fc (plain)
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
import multired as mr
import sys


if len(sys.argv) < 2:
    print "Usage: %s <layer_list>" % sys.argv[0]
    sys.exit(1)

print "Loading layers...",
m = mr.multiplex_red(sys.argv[1])
print "[DONE]"

print "Computing layer entropies (approx)...",
m.compute_layer_entropies_approx()
print "[DONE]"

print "Computing JSD matrix (approx)...",
m.compute_JSD_matrix_approx()
print "[DONE]"

print "Performing reduction (approx)...",
m.reduce_approx()
print "[DONE]"


print "Getting partitons...",
part = m.compute_partitions_approx()
print "[DONE]"

print "Partitions:..."
m.dump_partitions_approx()
print "[DONE]"