Skip to content

Commit

Permalink
major Changes
Browse files Browse the repository at this point in the history
  • Loading branch information
udayRage committed Dec 3, 2024
1 parent be45620 commit dd5141c
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 30 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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 = {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
import PAMI.extras.graph.plotLineGraphFromDictionary as plt


class georeferencedTransactionalDatabase:
class GeoreferencedTransactionalDatabase:
"""
:Description: TransactionalDatabase is class to get stats of database.
Expand Down Expand Up @@ -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 = {}
Expand Down Expand Up @@ -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()



2 changes: 1 addition & 1 deletion docs/highUtilityPatternMining.md
Original file line number Diff line number Diff line change
Expand Up @@ -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$   `' '`
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit dd5141c

Please sign in to comment.