n="justify"> "" "candidate == tmp: _exist = TRUEc IN candidates: c ['elements'] == item: ['cnt'] = c ['cnt'] + 1: . append ({'cnt': 1, 'elements': item [:]}) item IN candidates: = self.find_supp (item ['elements'] [: len (item ['elements']) - 1], DATA) ['supp'] = FLOAT (item ['cnt'])/supp * 100_filter = [line FOR line IN candidates IF line ['cnt']> = minsupp AND line ['cnt'] <= maxsupp ] candidates_filterfind_supp (self, el, DATA): i IN DATA: el == i ['elements']: i ['cnt'] 0popular (self): = self.calc () = sorted (k, KEY = lambda X :-X ['supp']) items