PAMI is a Python library containing 100+ algorithms to discover useful patterns in various databases across multiple computing platforms. (Active)
When you are writing algorithms for PAMI, please ensure the following:
data frame
The data frame will contain multiple rows but only single column. In text file or data frame, items are seperated by a seperator.
The algorithm developers were requested to ensure the following output methods exist:
len(obj.getCandidatePatterns()) for the candidate count, just as len(obj.getPatterns()) counts final patterns. Candidates use immutable representations; their format depends on the algorithm. The list is empty before mining and for pattern growth algorithms without explicit candidate generation, such as FP Growth and PrefixSpan. Retaining candidates requires additional memory; this count is not the number of support tests or search nodes.obj.mine()
patterns = obj.getPatterns()
candidates = obj.getCandidatePatterns()
print("Final patterns:", len(patterns))
print("Candidate patterns:", len(candidates))
def printResults(self):
print("Total number of Frequent Patterns:", len(self.getPatterns()))
print("Total Memory in USS:", self.getMemoryUSS())
print("Total Memory in RSS", self.getMemoryRSS())
print("Total ExecutionTime in ms:", self.getRuntime())