input('Press any key to continue')
            cProfile.run('APR.Run_Apriori()')
            print(
                '------------------Run Profiling ( FP Growth Algo )---------------------------'
            )
            input('Press any key to continue')
            cProfile.run('FPG.Run_FPGrowth()')
        else:
            APR.Run_Apriori()
            FPG.Run_FPGrowth()

        print(
            '------------------Output Frequent Itemset ( Apriori Algo )---------------------------'
        )
        input('Press any key to continue')
        for item in APR.Get_FreqItemsets():
            print(item)
        print(
            '------------------Output Frequent Itemset ( FP Growth Algo )---------------------------'
        )
        input('Press any key to continue')
        for item in FPG.Get_FreqItemsets():
            print(item)
        input('Press any key to continue')
        if args.association:
            print(
                '------------------Output Association Rule ( Apriori Algo )---------------------------'
            )
            for i, rule in enumerate(APR.RuleGenerator()):
                print("Rule Num {:<}: {} -> {} conf: {:<.3f} sup: {:<}".format(
                    i + 1, rule[0], rule[1], rule[2], rule[3]))