PartialPeriodicPatternMining
- class geoanalytics.patternMining.PartialPeriodicPatternMining.PartialPeriodicPatternMining(inputFile: str)[source]
Bases:
PatternMinerAbout this algorithm
- Description:
This module implements the PPPGrowth algorithm for mining partial periodic patterns from temporal transactional datasets. It identifies itemsets that recur periodically within a specified period with a minimum periodic support threshold.
- Parameters:
inputFile (str): Path to the temporal transactional database file.
- Attributes:
inputFile (str): The temporal transactional input file provided during object instantiation.
miner (PPPGrowth): Instance of the PPPGrowth algorithm from the PAMI library.
Execution methods
Calling from a Python program
from geoanalytics.patternMining import PartialPeriodicPatternMining miner = PartialPeriodicPatternMining("data/input.txt") miner.run(minSupport=3, period=10)
Credits
Written by M. Charan Teja, under the guidance of Professor Rage Uday Kiran.
- run(minSupport: int, period: int)[source]
Executes the PPPGrowth algorithm to mine partial periodic patterns.
- Parameters:
minSupport (int) – Minimum periodic support threshold for frequent itemsets.
period (int) – The periodicity window controlling pattern recurrence interval.
- Output:
Prints the discovered partial periodic patterns to the console.