daily pastebin goal
38%
SHARE
TWEET

Untitled

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