PAMI - An Open Source PAttern MIning Python Library

PAMI is a Python library containing 100+ algorithms to discover useful patterns in various databases across multiple computing platforms. (Active)

<– Return to home page

Methods to execute an algorithm in PAMI

The users can execute the algorithms in PAMI in the following two ways:

  1. Direct execution of an algorithm from a terminal
Python algorithmName <inputParameters>

Every algorithm must include main function. In other words, every algorithm must have the following statement.

if __name__ == "__main__":
    _ap = str()
  1. Calling the algorithm via a python program

Every algorithm’s class file must have a constructor that reads the input parameters. This constructor file is mainly provided in the abstract class for reusing. If any person wants to create their own constructor, then the format is given below:

class AlgorithmName(abstractClass):
    def __init__(self, inputParameters):
        #write your code here.