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
| rules = [] ruleGenerator(freqItems,0.6,rules) rules ''' [(frozenset({'t'}), frozenset({'z'}), 1.0), (frozenset({'z'}), frozenset({'t'}), 0.6), (frozenset({'x'}), frozenset({'t'}), 0.75), (frozenset({'t'}), frozenset({'x'}), 1.0), (frozenset({'t', 'x'}), frozenset({'z'}), 1.0), (frozenset({'x'}), frozenset({'t', 'z'}), 0.75), (frozenset({'t'}), frozenset({'x', 'z'}), 1.0), (frozenset({'x', 'z'}), frozenset({'t'}), 1.0), (frozenset({'z'}), frozenset({'t', 'x'}), 0.6), (frozenset({'t', 'z'}), frozenset({'x'}), 1.0), (frozenset({'x'}), frozenset({'s'}), 0.75), (frozenset({'s'}), frozenset({'x'}), 1.0), (frozenset({'z'}), frozenset({'y'}), 0.6), (frozenset({'y'}), frozenset({'z'}), 1.0), (frozenset({'t'}), frozenset({'y'}), 1.0), (frozenset({'y'}), frozenset({'t'}), 1.0), (frozenset({'t', 'z'}), frozenset({'y'}), 1.0), (frozenset({'t'}), frozenset({'y', 'z'}), 1.0), (frozenset({'z'}), frozenset({'t', 'y'}), 0.6), ... '''
|