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"]
code: def _calculate_support(self, itemset):
      count = 0
      for transaction in self.transactions:
          if self._transaction_contains_items(transaction, itemset):
              count += 1
      support = count / len(self.transactions)
      return support
  
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 2 for calling the Apriori obj's underlying member method code with example usage: obj._calculate_support(itemset) and returns: support