HighUtilitySpatialPatternMining
- class geoanalytics.patternMining.HighUtilitySpatialPatternMining.HighUtilitySpatialPatternMining(inputFile: str)[source]
Bases:
PatternMinerAbout this algorithm
- Description:
This module implements the HDSHUIM algorithm for mining high utility spatial patterns from utility transactional databases augmented with spatial neighborhood information. The algorithm integrates utility-based pattern mining with spatial proximity defined by a neighborhood file to discover spatially meaningful high utility patterns.
- Parameters:
inputFile (str): Path to the utility transactional database file.
nFile (str): Path to the neighborhood file specifying spatial relationships.
- Attributes:
inputFile (str): The utility transactional input file provided during object instantiation.
miner (HDSHUIM): Instance of the HDSHUIM algorithm from the PAMI library.
Execution methods
Calling from a Python program
from geoanalytics.patternMining import HighUtilitySpatialPatternMining miner = HighUtilitySpatialPatternMining("data/input.txt") miner.run(minUtil=50, nFile="data/neighbor.txt")
Credits
Written by M. Charan Teja, under the guidance of Professor Rage Uday Kiran.
- run(minUtil: int, nFile: str)[source]
Executes the HDSHUIM algorithm to mine high utility spatial patterns.
- Parameters:
minUtil (int) – Minimum utility threshold to identify high utility patterns.
nFile (str) – Path to the neighborhood file containing spatial proximity information.
- Output:
Prints the discovered high utility spatial patterns to the console.