PAMI.highUtilitySpatialPattern package

Subpackages

Submodules

PAMI.highUtilitySpatialPattern.abstract module

class PAMI.highUtilitySpatialPattern.abstract.utilityPatterns(iFile, nFile, minUtil, sep='\t')[source]

Bases: ABC

Description:

This abstract base class defines the variables and methods that every frequent pattern mining algorithm must employ in PAMI

Attributes:
iFilestr

Input file name or path of the input file

minUtil: integer

The user can specify minUtil either in count

sepstr

This variable is used to distinguish items from one another in a transaction. The default seperator is tab space or . However, the users can override their default separator

startTime:float

To record the start time of the algorithm

endTime:float

To record the completion time of the algorithm

finalPatterns: dict

Storing the complete set of patterns in a dictionary variable

oFilestr

Name of the output file to store complete set of frequent patterns

memoryUSSfloat

To store the total amount of USS memory consumed by the program

memoryRSSfloat

To store the total amount of RSS memory consumed by the program

Methods:
mine()

Calling this function will start the actual mining process

getPatterns()

This function will output all interesting patterns discovered by an algorithm

save(oFile)

This function will store the discovered patterns in an output file specified by the user

getPatternsAsDataFrame()

The function outputs the patterns generated by an algorithm as a data frame

getMemoryUSS()

This function outputs the total amount of USS memory consumed by a mining algorithm

getMemoryRSS()

This function outputs the total amount of RSS memory consumed by a mining algorithm

getRuntime()

This function outputs the total runtime of a mining algorithm

abstract endTime()[source]

Variable to store the end time of the complete program

abstract finalPatterns()[source]

Variable to store the complete set of patterns in a dictionary

abstract getMemoryRSS()[source]

Total amount of RSS memory consumed by the program will be retrieved from this function

abstract getMemoryUSS()[source]

Total amount of USS memory consumed by the program will be retrieved from this function

abstract getPatterns()[source]

Complete set of frequent patterns generated will be retrieved from this function

abstract getPatternsAsDataFrame()[source]

Complete set of frequent patterns will be loaded in to data frame from this function

abstract getRuntime()[source]

Total amount of runtime taken by the program will be retrieved from this function

abstract iFile()[source]

Variable to store the input file path/file name

abstract memoryRSS()[source]

Variable to store RSS memory consumed by the program

abstract memoryUSS()[source]

Variable to store USS memory consumed by the program

abstract minUtil()[source]

Variable to store the user-specified minimum support value

abstract nFile()[source]

Variable to store the neighbourhood file path/file name

abstract oFile()[source]

Variable to store the name of the output file to store the complete set of frequent patterns

abstract save(oFile)[source]

Complete set of frequent patterns will be saved in to an output file from this function

Parameters:

oFile (csv file) – Name of the output file

abstract startMine()[source]

Code for the mining process will start from this function

abstract startTime()[source]

Variable to store the start time of the mining process

Module contents