-------------</span>

<span class="sd">    .. code-block:: python</span>

<span class="sd">            import PAMI.frequentPattern.basic.Apriori as alg</span>

<span class="sd">            obj = alg.Apriori(iFile, minSup)</span>

<span class="sd">            obj.mine()</span>

<span class="sd">            frequentPatterns = obj.getPatterns()</span>

<span class="sd">            print(&quot;Total number of Frequent Patterns:&quot;, len(frequentPatterns))</span>

<span class="sd">            obj.save(oFile)</