26 lines
575 B
Python
Executable File
26 lines
575 B
Python
Executable File
#!/usr/bin/env python3
|
|
import sys
|
|
import pickle
|
|
|
|
from pprint import pprint
|
|
|
|
from copycat import Problem
|
|
from copycat.statistics import cross_chi_squared
|
|
|
|
def compare_sets():
|
|
pass
|
|
|
|
def main(args):
|
|
branchProblemSets = dict()
|
|
problemSets = []
|
|
for filename in args:
|
|
with open(filename, 'rb') as infile:
|
|
pSet = pickle.load(infile)
|
|
branchProblemSets[filename] = pSet
|
|
problemSets.append((filename, pSet))
|
|
pprint(cross_chi_squared(problemSets))
|
|
return 0
|
|
|
|
if __name__ == '__main__':
|
|
sys.exit(main(sys.argv[1:]))
|