a guest Dec 7th, 2017 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- c_size = len(sampled_patterns) / (cpu_count() -1)
- pool = Pool(processes=cpu_count() -1)
- works = [(pattern, support_set, hit_rates) for pattern,support_set in sampled_patterns.items()]
- pool.starmap(get_hit_rules,works, chunksize=int(c_size))
RAW Paste Data