diff --git a/PAMI/extras/dbStats/georeferencedTemporalDatabase.py b/PAMI/extras/dbStats/GeoreferencedTemporalDatabase.py similarity index 98% rename from PAMI/extras/dbStats/georeferencedTemporalDatabase.py rename to PAMI/extras/dbStats/GeoreferencedTemporalDatabase.py index 7689b1db..e52f056f 100644 --- a/PAMI/extras/dbStats/georeferencedTemporalDatabase.py +++ b/PAMI/extras/dbStats/GeoreferencedTemporalDatabase.py @@ -43,7 +43,7 @@ from typing import Dict, Union import PAMI.extras.graph.plotLineGraphFromDictionary as plt -class georeferencedTemporalDatabase: +class GeoreferencedTemporalDatabase: """ :Description: TemporalDatabase is class to get stats of database. @@ -103,15 +103,15 @@ class georeferencedTemporalDatabase: obj.printStats() """ - def __init__(self, inputFile: Union[str, pd.DataFrame], sep: str = '\t') -> None: + def __init__(self, iFile: Union[str, pd.DataFrame], sep: str = '\t') -> None: """ - :param inputFile: input file name or path - :type inputFile: str + :param iFile: input file name or path + :type iFile: str :param sep: separator :type sep: str :return: None """ - self.inputFile = inputFile + self.inputFile = iFile self.database = {} self.lengthList = [] self.timeStampCount = {} diff --git a/PAMI/extras/dbStats/georeferencedTransactionalDatabase.py b/PAMI/extras/dbStats/GeoreferencedTransactionalDatabase.py similarity index 92% rename from PAMI/extras/dbStats/georeferencedTransactionalDatabase.py rename to PAMI/extras/dbStats/GeoreferencedTransactionalDatabase.py index 4d44009f..797c4a07 100644 --- a/PAMI/extras/dbStats/georeferencedTransactionalDatabase.py +++ b/PAMI/extras/dbStats/GeoreferencedTransactionalDatabase.py @@ -42,7 +42,7 @@ import PAMI.extras.graph.plotLineGraphFromDictionary as plt -class georeferencedTransactionalDatabase: +class GeoreferencedTransactionalDatabase: """ :Description: TransactionalDatabase is class to get stats of database. @@ -102,15 +102,15 @@ class georeferencedTransactionalDatabase: """ - def __init__(self, inputFile: Union[str, pd.DataFrame], sep: str = '\t') -> None: + def __init__(self, iFile: Union[str, pd.DataFrame], sep: str = '\t') -> None: """ - :param inputFile: input file name or path - :type inputFile: str + :param iFile: input file name or path + :type iFile: str :param sep: separator :type sep: str :return: None """ - self.inputFile = inputFile + self.inputFile = iFile self.lengthList = [] self.sep = sep self.database = {} @@ -332,24 +332,24 @@ def plotGraphs(self) -> None: 'frequency') -if __name__ == '__main__': - data = {'tid': [1, 2, 3, 4, 5, 6, 7], - - 'Transactions': [['a', 'd', 'e'], ['b', 'a', 'f', 'g', 'h'], ['b', 'a', 'd', 'f'], ['b', 'a', 'c'], - ['a', 'd', 'g', 'k'], - - ['b', 'd', 'g', 'c', 'i'], ['b', 'd', 'g', 'e', 'j']]} - - # data = pd.DataFrame.from_dict('transactional_T10I4D100K.csv') - import PAMI.extras.graph.plotLineGraphFromDictionary as plt - import pandas as pd - - # obj = TransactionalDatabase(data) - obj = TransactionalDatabase(sys.argv[1], sys.argv[2]) - obj = TransactionalDatabase(pd.DataFrame(data)) - obj.run() - obj.printStats() - obj.plotGraphs() +# if __name__ == '__main__': +# data = {'tid': [1, 2, 3, 4, 5, 6, 7], +# +# 'Transactions': [['a', 'd', 'e'], ['b', 'a', 'f', 'g', 'h'], ['b', 'a', 'd', 'f'], ['b', 'a', 'c'], +# ['a', 'd', 'g', 'k'], +# +# ['b', 'd', 'g', 'c', 'i'], ['b', 'd', 'g', 'e', 'j']]} +# +# # data = pd.DataFrame.from_dict('transactional_T10I4D100K.csv') +# import PAMI.extras.graph.plotLineGraphFromDictionary as plt +# import pandas as pd +# +# # obj = TransactionalDatabase(data) +# obj = TransactionalDatabase(sys.argv[1], sys.argv[2]) +# obj = TransactionalDatabase(pd.DataFrame(data)) +# obj.run() +# obj.printStats() +# obj.plotGraphs() diff --git a/docs/highUtilityPatternMining.md b/docs/highUtilityPatternMining.md index 3583de32..c057e6ab 100644 --- a/docs/highUtilityPatternMining.md +++ b/docs/highUtilityPatternMining.md @@ -121,7 +121,7 @@ foo@bar: cd PAMI/highUtilityPattern/basic ``` * Execute the python program on their terminal using the following syntax: ```console -foo@bar: python3 algorithmName.py inputFile outputFile minUtil seperator +foo@bar: python3 algorithmName.py iFile outputFile minUtil seperator ``` __Example:__ python3 `EFIM.py` `inputFile.txt` `outputFile.txt` $20$   `' '` diff --git a/setup.py b/setup.py index b16f5a3f..5ef4fffa 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ setuptools.setup( name='pami', - version='2024.11.15.1', + version='2024.12.3.1', author='Rage Uday Kiran', author_email='uday.rage@gmail.com', description='This software is being developed at the University of Aizu, Aizu-Wakamatsu, Fukushima, Japan',