summaryrefslogtreecommitdiff
path: root/python/test/test.py
blob: 5ccb490c973c4aa8cdb8a2e24b7f990e4d82929d (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...",
m.compute_layer_entropies()
print "[DONE]"

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

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

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

print "Partitions:...",
m.dump_partitions()
print "[DONE]"