class_docstr: A method for determining frequent itemsets in a transactional database and
  also for generating rules for those itemsets. 
  
  Parameters:
  -----------
  min_sup: float
      The minimum fraction of transactions an itemets needs to
      occur in to be deemed frequent
  min_conf: float:
      The minimum fraction of times the antecedent needs to imply
      the concequent to justify rule
class_docstr_tok: ["A","method","for","determining","frequent","itemsets","in","a","transactional","database","and","also","for","generating","rules","for","those","itemsets",".","Parameters",":","--","--","--","--","--","-","min_sup",":","float","The","minimum","fraction","of","transactions","an","itemets","needs","to","occur","in","to","be","deemed","frequent","min_conf",":","float",":","The","minimum","fraction","of","times","the","antecedent","needs","to","imply","the","concequent","to","justify","rule"]
docstr: True or false depending on the candidate has any
  subset with size k - 1 that is not in the frequent itemset 
docstr_tok: ["True","or","false","depending","on","the","candidate","has","any","subset","with","size","k","-","1","that","is","not","in","the","frequent","itemset"]
code: def _has_infrequent_itemsets(self, candidate):
      """True or false depending on the candidate has any
      subset with size k - 1 that is not in the frequent itemset"""
      k = len(candidate)
      # Find all combinations of size k-1 in candidate
      # E.g [1,2,3] => [[1,2],[1,3],[2,3]]
      subsets = list(itertools.combinations(candidate, k - 1))
      for t in subsets:
          # t - is tuple. If size == 1 get the element
          subset = list(t) if len(t) > 1 else t[0]
          if not subset in self.freq_itemsets[-1]:
              return True
      return False
  
file_path: ML-From-Scratch/mlfromscratch/unsupervised_learning/apriori.py
imports: from __future__ import division, print_function
  import numpy
  import itertools
label_desc: Use image node_id 4 for calling the Apriori obj's underlying member method code with example usage: obj._has_infrequent_itemsets(candidate) and returns: False, True