Adds probability difference to copycat/statistics

This commit is contained in:
LSaldyt
2018-01-12 15:32:53 -07:00
parent 1506e673a2
commit 84cc3bf9c1
2 changed files with 39 additions and 13 deletions

View File

@ -19,7 +19,7 @@ def main(args):
pSet = pickle.load(infile)
branchProblemSets[filename] = pSet
problemSets.append((filename, pSet))
crossTable = cross_table(problemSets)
crossTable = cross_table(problemSets, probs=True)
key_sorted_items = lambda d : sorted(d.items(), key=lambda t:t[0])
tableItems = key_sorted_items(crossTable)