PAMI.extras.calculateMISValues package
Submodules
PAMI.extras.calculateMISValues.usingBeta module
- class PAMI.extras.calculateMISValues.usingBeta.usingBeta(iFile: str, beta: int, threshold: int, sep: str)[source]
Bases:
object
- Description:
This code is used to calculate multiple minimum support of items in the the given database. Output can be stored in file or as as dataframe.
- Parameters:
iFile – str : Name of the Input file to get the patterns as DataFrame
beta – str : Name of the output file to store complete set of frequent patterns
threshold – int : The user can specify threshold either in count or proportion of database size. If the program detects the data type of threshold is integer, then it treats threshold is expressed in count.
sep – str : This variable is used to distinguish items from one another in a transaction. The default seperator is tab space. However, the users can override their default separator.
Importing this algorithm into a python program
from PAMI.extras.calculateMISValues import usingBeta as db
obj = db.usingBeta(iFile, 3, 16, “ “)
obj.save(oFile)
PAMI.extras.calculateMISValues.usingSD module
- class PAMI.extras.calculateMISValues.usingSD.usingSD(iFile: str, threshold: int, sep: str)[source]
Bases:
object
- Description:
This code is used to calculate multiple minimum support of items in the the given database. Output can be stored in file or as as dataframe.
- Parameters:
iFile – str : Name of the Input file to mine complete set of frequent patterns
sd – int : SD of items to mine complete set of frequent patterns.
threshold – int : The user can specify threshold either in count or proportion of database size. If the program detects the data type of threshold is integer, then it treats threshold is expressed in count.
sep – str : This variable is used to distinguish items from one another in a transaction. The default seperator is tab space. However, the users can override their default separator.
Importing this algorithm into a python program
from PAMI.extras.calculateMISValues import usingSD as db obj = db.usingSD(iFile, 16, " ") obj.getPatterns("outputFileName") # To create patterns in dataframe obj.save(oFile)