PeriodicFrequentPatternMining

class geoanalytics.patternMining.PeriodicFrequentPatternMining.PeriodicFrequentPatternMining(inputFile: str)[source]

Bases: PatternMiner

About this algorithm

Description:

This module implements the PFPGrowth algorithm for mining periodic frequent patterns from temporal transactional databases. The algorithm finds frequent itemsets that appear repeatedly within a specified maximum periodicity.

Parameters:
  • inputFile (str): Path to the temporal transactional database file.

Attributes:
  • inputFile (str): The temporal transactional input file provided during object instantiation.

  • miner (PFPGrowth): Instance of the PFPGrowth algorithm from the PAMI library.

Execution methods

Calling from a Python program

from geoanalytics.patternMining import PeriodicFrequentPatternMining

miner = PeriodicFrequentPatternMining("data/input.txt")

miner.run(minSupport=3, maxPer=10)

Credits

Written by M. Charan Teja, under the guidance of Professor Rage Uday Kiran.

run(minSupport: int, maxPer: int)[source]

Executes the PFPGrowth algorithm to mine periodic frequent patterns.

Parameters:
  • minSupport (int) – Minimum support threshold for frequent itemsets.

  • maxPer (int) – Maximum periodicity controlling pattern recurrence interval.

Output:

Prints the discovered periodic frequent patterns to the console.