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 b48e683 commit be45620
Show file tree
Hide file tree
Showing 655 changed files with 1,416 additions and 1,418 deletions.
4 changes: 2 additions & 2 deletions PAMI/AssociationRules/basic/_ARWithLeverage.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ def _readPatterns(self) -> list:
quit()
return k

@deprecated("It is recommended to use 'mine()' instead of 'startMine()' for mining process. Starting from January 2025, 'startMine()' will be completely terminated.")
@deprecated("It is recommended to use 'mine()' instead of 'mine()' for mining process. Starting from January 2025, 'mine()' will be completely terminated.")
def startMine(self) -> None:
"""
Association rule mining process will start from here
Expand Down Expand Up @@ -404,7 +404,7 @@ def printResults(self) -> None:
_ap = ARWithLeverage(_ab._sys.argv[1], float(_ab._sys.argv[3]), _ab._sys.argv[4])
if len(_ab._sys.argv) == 4:
_ap = ARWithLeverage(_ab._sys.argv[1], float(_ab._sys.argv[3]),sep='\t')
_ap.startMine()
_ap.mine()
_ap.mine()
print("Total number of Association Rules:", len(_ap.getPatterns()))
_ap.save(_ab._sys.argv[2])
Expand Down
4 changes: 2 additions & 2 deletions PAMI/AssociationRules/basic/_ARWithLift.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ def _readPatterns(self) -> list:
quit()
return k

@deprecated("It is recommended to use 'mine()' instead of 'startMine()' for mining process. Starting from January 2025, 'startMine()' will be completely terminated.")
@deprecated("It is recommended to use 'mine()' instead of 'mine()' for mining process. Starting from January 2025, 'mine()' will be completely terminated.")
def startMine(self) -> None:
"""
Association rule mining process will start from here
Expand Down Expand Up @@ -392,7 +392,7 @@ def printResults(self) -> None:
_ap = ARWithLift(_ab._sys.argv[1], float(_ab._sys.argv[3]), _ab._sys.argv[4])
if len(_ab._sys.argv) == 4:
_ap = ARWithLift(_ab._sys.argv[1], _ab._sys.argv[3],sep='\t')
_ap.startMine()
_ap.mine()
_ap.mine()
print("Total number of Association Rules:", len(_ap.getPatterns()))
_ap.save(_ab._sys.argv[2])
Expand Down
6 changes: 3 additions & 3 deletions PAMI/AssociationRules/basic/_RuleMiner.py
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ def _readPatterns(self):
quit()
return k

@deprecated("It is recommended to use 'mine()' instead of 'startMine()' for mining process. Starting from January 2025, 'startMine()' will be completely terminated.")
@deprecated("It is recommended to use 'mine()' instead of 'mine()' for mining process. Starting from January 2025, 'mine()' will be completely terminated.")
def startMine(self):
"""
Association rule mining process will start from here
Expand Down Expand Up @@ -543,7 +543,7 @@ def printResults(self):
_ap = RuleMiner(_ab._sys.argv[1], _ab._sys.argv[3], float(_ab._sys.argv[4]), _ab._sys.argv[5])
if len(_ab._sys.argv) == 5:
_ap = RuleMiner(_ab._sys.argv[1], _ab._sys.argv[3], _ab._sys.argv[4],sep='\t')
_ap.startMine()
_ap.mine()
_ap.mine()
print("Total number of Association Rules:", len(_ap.getPatterns()))
_ap.save(_ab._sys.argv[2])
Expand All @@ -552,7 +552,7 @@ def printResults(self):
print("Total ExecutionTime in ms:", _ap.getRuntime())
else:
_ap = RuleMiner('sensorOutput.txt', "lift", 0.5, '\t')
_ap.startMine()
_ap.mine()
_ap.mine()
_ap.save('output.txt')
_ap.printResults()
Expand Down
2 changes: 1 addition & 1 deletion PAMI/AssociationRules/basic/abstract.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ class _AssociationRules(_ABC):
:Methods:
startMine()
mine()
Calling this function will start the actual mining process
getPatterns()
This function will output all interesting patterns discovered by an algorithm
Expand Down
4 changes: 2 additions & 2 deletions PAMI/AssociationRules/basic/confidence.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ def _readPatterns(self):
# sorted(k, key=lambda x: self._frequentPatterns[x], reverse=True)
# return k

@deprecated("It is recommended to use 'mine()' instead of 'startMine()' for mining process. Starting from January 2025, 'startMine()' will be completely terminated.")
@deprecated("It is recommended to use 'mine()' instead of 'mine()' for mining process. Starting from January 2025, 'mine()' will be completely terminated.")
def startMine(self):
"""
Association rule mining process will start from here
Expand Down Expand Up @@ -348,7 +348,7 @@ def printResults(self):
_ap = confidence(_ab._sys.argv[1], float(_ab._sys.argv[3]), _ab._sys.argv[4])
if len(_ab._sys.argv) == 4:
_ap = confidence(_ab._sys.argv[1], float(_ab._sys.argv[3]))
_ap.startMine()
_ap.mine()
_ap.mine()
print("Total number of Association Rules:", len(_ap.getAssociationRules()))
_ap.save(_ab._sys.argv[2])
Expand Down
4 changes: 2 additions & 2 deletions PAMI/AssociationRules/basic/leverage.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ def _readPatterns(self):
# sorted(k, key=lambda x: self._frequentPatterns[x], reverse=True)
# return k

@deprecated("It is recommended to use 'mine()' instead of 'startMine()' for mining process. Starting from January 2025, 'startMine()' will be completely terminated.")
@deprecated("It is recommended to use 'mine()' instead of 'mine()' for mining process. Starting from January 2025, 'mine()' will be completely terminated.")
def startMine(self):
"""
Association rule mining process will start from here
Expand Down Expand Up @@ -344,7 +344,7 @@ def printResults(self):
_ap = leverage(_ab._sys.argv[1], float(_ab._sys.argv[3]), _ab._sys.argv[4])
if len(_ab._sys.argv) == 4:
_ap = leverage(_ab._sys.argv[1], _ab._sys.argv[3],sep='\t')
_ap.startMine()
_ap.mine()
_ap.mine()
print("Total number of Association Rules:", len(_ap.getAssociationRules()))
_ap.save(_ab._sys.argv[2])
Expand Down
4 changes: 2 additions & 2 deletions PAMI/AssociationRules/basic/lift.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ def _readPatterns(self):
# sorted(k, key=lambda x: self._frequentPatterns[x], reverse=True)
# return k

@deprecated("It is recommended to use 'mine()' instead of 'startMine()' for mining process. Starting from January 2025, 'startMine()' will be completely terminated.")
@deprecated("It is recommended to use 'mine()' instead of 'mine()' for mining process. Starting from January 2025, 'mine()' will be completely terminated.")
def startMine(self):
"""
Association rule mining process will start from here
Expand Down Expand Up @@ -341,7 +341,7 @@ def printResults(self):
_ap = lift(_ab._sys.argv[1], float(_ab._sys.argv[3]), _ab._sys.argv[4])
if len(_ab._sys.argv) == 4:
_ap = lift(_ab._sys.argv[1], float(_ab._sys.argv[3]),sep='\t')
_ap.startMine()
_ap.mine()
_ap.mine()
print("Total number of Association Rules:", len(_ap.getAssociationRules()))
_ap.save(_ab._sys.argv[2])
Expand Down
2 changes: 1 addition & 1 deletion PAMI/contiguousFrequentPattern/basic/PositionMining.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ def mineNext_candidates(self):
self.join(curr,self.current_candidate)
self.current_candidate+=1

@deprecated("It is recommended to use 'mine()' instead of 'startMine()' for mining process. Starting from January 2025, 'startMine()' will be completely terminated.")
@deprecated("It is recommended to use 'mine()' instead of 'mine()' for mining process. Starting from January 2025, 'mine()' will be completely terminated.")
def startMine(self):
"""
Pattern mining process will start from here
Expand Down
2 changes: 1 addition & 1 deletion PAMI/contiguousFrequentPattern/basic/abstract.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class _contigousPatterns(_ABC):
:Methods:
startMine()
mine()
Calling this function will start the actual mining process
getPatterns()
This function will output all interesting patterns discovered by an algorithm
Expand Down
4 changes: 2 additions & 2 deletions PAMI/correlatedPattern/basic/CoMine.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ def _convert(self, value: Union[int, float, str]) -> None:
value = int(value)
return value

@deprecated("It is recommended to use 'mine()' instead of 'startMine()' for mining process. Starting from January 2025, 'startMine()' will be completely terminated.")
@deprecated("It is recommended to use 'mine()' instead of 'mine()' for mining process. Starting from January 2025, 'mine()' will be completely terminated.")
def startMine(self) -> None:
"""
main method to start
Expand Down Expand Up @@ -511,7 +511,7 @@ def printResults(self) -> None:
_ap = CoMine(_ab._sys.argv[1], _ab._sys.argv[3], float(_ab._sys.argv[4]), _ab._sys.argv[5])
if len(_ab._sys.argv) == 5:
_ap = CoMine(_ab._sys.argv[1], _ab._sys.argv[3], float(_ab._sys.argv[4]))
_ap.startMine()
_ap.mine()
_ap.mine()
print("Total number of Correlated-Frequent Patterns:", len(_ap.getPatterns()))
_ap.save(_ab._sys.argv[2])
Expand Down
4 changes: 2 additions & 2 deletions PAMI/correlatedPattern/basic/CoMinePlus.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ def _convert(self, value: Union[int, float, str]) -> None:
value = int(value)
return value

@deprecated("It is recommended to use 'mine()' instead of 'startMine()' for mining process. Starting from January 2025, 'startMine()' will be completely terminated.")
@deprecated("It is recommended to use 'mine()' instead of 'mine()' for mining process. Starting from January 2025, 'mine()' will be completely terminated.")
def startMine(self) -> None:
self.mine()

Expand Down Expand Up @@ -543,7 +543,7 @@ def printResults(self) -> None:
_ap = CoMinePlus(_ab._sys.argv[1], _ab._sys.argv[3], float(_ab._sys.argv[4]), _ab._sys.argv[5])
if len(_ab._sys.argv) == 5:
_ap = CoMinePlus(_ab._sys.argv[1], _ab._sys.argv[3], float(_ab._sys.argv[4]))
_ap.startMine()
_ap.mine()
_ap.mine()
print("Total number of Correlated-Frequent Patterns:", len(_ap.getPatterns()))
_ap.save(_ab._sys.argv[2])
Expand Down
4 changes: 2 additions & 2 deletions PAMI/correlatedPattern/basic/_CoMine.py
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,7 @@ def _correlatedPatternGrowthGenerate(self, correlatedPatternTree, prefix, prefix
treeBeta.createHeaderList(mapSupportBeta, self._minSup)
self._correlatedPatternGrowthGenerate(treeBeta, prefix, prefixLength + 1, mapSupportBeta)

@deprecated("It is recommended to use 'mine()' instead of 'startMine()' for mining process. Starting from January 2025, 'startMine()' will be completely terminated.")
@deprecated("It is recommended to use 'mine()' instead of 'mine()' for mining process. Starting from January 2025, 'mine()' will be completely terminated.")
def startMine(self) -> None:
"""
main method to start
Expand Down Expand Up @@ -682,7 +682,7 @@ def printResults(self) -> None:
_ap = CoMine(_ab._sys.argv[1], _ab._sys.argv[3], float(_ab._sys.argv[4]), _ab._sys.argv[5])
if len(_ab._sys.argv) == 5:
_ap = CoMine(_ab._sys.argv[1], _ab._sys.argv[3], float(_ab._sys.argv[4]))
_ap.startMine()
_ap.mine()
_ap.mine()
print("Total number of Correlated-Frequent Patterns:", len(_ap.getPatterns()))
_ap.save(_ab._sys.argv[2])
Expand Down
2 changes: 1 addition & 1 deletion PAMI/correlatedPattern/basic/abstract.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class _correlatedPatterns(_ABC):
:Methods:
startMine()
mine()
Calling this function will start the actual mining process
getPatterns()
This function will output all interesting patterns discovered by an algorithm
Expand Down
4 changes: 2 additions & 2 deletions PAMI/coveragePattern/basic/CMine.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ def generateAllPatterns(self,coverageItems: Dict[str, int]) -> None:
#print(i,tidData[i][0])
self.genPatterns(tidData[i],tidData[i+1:length])

@deprecated("It is recommended to use 'mine()' instead of 'startMine()' for mining process. Starting from January 2025, 'startMine()' will be completely terminated.")
@deprecated("It is recommended to use 'mine()' instead of 'mine()' for mining process. Starting from January 2025, 'mine()' will be completely terminated.")
def startMine(self) -> None:
""" Main method to start """

Expand Down Expand Up @@ -419,7 +419,7 @@ def printResults(self) -> None:
_ap = CMine(_ab._sys.argv[1], _ab._sys.argv[3], _ab._sys.argv[4], _ab._sys.argv[5], _ab._sys.argv[6])
if len(_ab._sys.argv) == 6:
_ap = CMine(_ab._sys.argv[1], _ab._sys.argv[3], _ab._sys.argv[4], _ab._sys.argv[5])
_ap.startMine()
_ap.mine()
_ap.mine()
print("Total number of coverage Patterns:", len(_ap.getPatterns()))
_ap.save(_ab._sys.argv[2])
Expand Down
4 changes: 2 additions & 2 deletions PAMI/coveragePattern/basic/CPPG.py
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ def _convert(self, value: Union[int, float, str]) -> Union[int, float]:
value = int(value)
return value

@deprecated("It is recommended to use 'mine()' instead of 'startMine()' for mining process. Starting from January 2025, 'startMine()' will be completely terminated.")
@deprecated("It is recommended to use 'mine()' instead of 'mine()' for mining process. Starting from January 2025, 'mine()' will be completely terminated.")
def startMine(self) -> None:
""" Mining process will start from this function
"""
Expand Down Expand Up @@ -475,7 +475,7 @@ def printResults(self) -> None:
_ap = CPPG(_ab._sys.argv[1], _ab._sys.argv[3], _ab._sys.argv[4], _ab._sys.argv[5], _ab._sys.argv[6])
if len(_ab._sys.argv) == 6:
_ap = CPPG(_ab._sys.argv[1], _ab._sys.argv[3], _ab._sys.argv[4], _ab._sys.argv[5])
_ap.startMine()
_ap.mine()
_ap.mine()
print("Total number of Coverage Patterns:", len(_ap.getPatterns()))
_ap.save(_ab._sys.argv[2])
Expand Down
2 changes: 1 addition & 1 deletion PAMI/coveragePattern/basic/abstract.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ class _coveragePatterns(_ABC):
:Methods:
startMine()
mine()
Mining process will start from here
getPatterns()
Complete set of patterns will be retrieved with this function
Expand Down
2 changes: 1 addition & 1 deletion PAMI/extras/convertMultiTSIntoFuzzy.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ def save(self, outputFile: str) -> None:
# break
writer.write("%s\n" %s2)

@deprecated("It is recommended to use 'mine()' instead of 'startMine()' for mining process. Starting from January 2025, 'startMine()' will be completely terminated.")
@deprecated("It is recommended to use 'mine()' instead of 'mine()' for mining process. Starting from January 2025, 'mine()' will be completely terminated.")
def startMine(self) -> None:
"""
Frequent pattern mining process will start from here
Expand Down
2 changes: 1 addition & 1 deletion PAMI/extras/fuzzyTransformation/abstract.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ class _convert(_ABC):
:Methods:
startMine()
mine()
Calling this function will start the actual mining process
getPatterns()
This function will output all interesting patterns discovered by an algorithm
Expand Down
4 changes: 2 additions & 2 deletions PAMI/faultTolerantFrequentPattern/basic/FTApriori.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ def _getFaultPatterns(self) -> None:
if len(j) >= self._minLength and res >= self._minSup:
self._finalPatterns[tuple(j)] = res

@deprecated("It is recommended to use 'mine()' instead of 'startMine()' for mining process. Starting from January 2025, 'startMine()' will be completely terminated.")
@deprecated("It is recommended to use 'mine()' instead of 'mine()' for mining process. Starting from January 2025, 'mine()' will be completely terminated.")
def startMine(self) -> None:
"""
Fault-tolerant frequent pattern mining process will start from here
Expand Down Expand Up @@ -437,7 +437,7 @@ def printResults(self) -> None:
_ab._sys.argv[5], _ab._sys.argv[6], _ab._sys.argv[7], )
if len(_ab._sys.argv) == 7:
_ap = FTApriori(_ab._sys.argv[1], _ab._sys.argv[3], _ab._sys.argv[4], _ab._sys.argv[5], _ab._sys.argv[6])
_ap.startMine()
_ap.mine()
_ap.mine()
print("Total number of Frequent Patterns:", len(_ap.getPatterns()))
_ap.save(_ab._sys.argv[2])
Expand Down
4 changes: 2 additions & 2 deletions PAMI/faultTolerantFrequentPattern/basic/FTFPGrowth.py
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,7 @@ def __savePeriodic(self, itemSet: List[int]) -> str:
temp = temp + self.__rankDup[i] + "\t"
return temp

@deprecated("It is recommended to use 'mine()' instead of 'startMine()' for mining process. Starting from January 2025, 'startMine()' will be completely terminated.")
@deprecated("It is recommended to use 'mine()' instead of 'mine()' for mining process. Starting from January 2025, 'mine()' will be completely terminated.")
def startMine(self) -> None:
"""
Main program to start the operation
Expand Down Expand Up @@ -688,7 +688,7 @@ def printResults(self) -> None:
_fp._sys.argv[5], _fp._sys.argv[6], _fp._sys.argv[7])
if len(_fp._sys.argv) == 7:
_ap = FTFPGrowth(_fp._sys.argv[1], _fp._sys.argv[3], _fp._sys.argv[4], _fp._sys.argv[5], _fp._sys.argv[6])
_ap.startMine()
_ap.mine()
_ap.mine()
print("Total number of Frequent Patterns:", len(_ap.getPatterns()))
_ap.save(_fp._sys.argv[2])
Expand Down
2 changes: 1 addition & 1 deletion PAMI/faultTolerantFrequentPattern/basic/abstract.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ class _faultTolerantFrequentPatterns(_ABC):
:Methods:
startMine()
mine()
Calling this function will start the actual mining process
getPatterns()
This function will output all interesting patterns discovered by an algorithm
Expand Down
4 changes: 2 additions & 2 deletions PAMI/frequentPattern/basic/Apriori.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ def _convert(self, value: Union[int, float, str]) -> Union[int, float]:
value = int(value)
return value

@deprecated("It is recommended to use 'mine()' instead of 'startMine()' for mining process. Starting from January 2025, 'startMine()' will be completely terminated.")
@deprecated("It is recommended to use 'mine()' instead of 'mine()' for mining process. Starting from January 2025, 'mine()' will be completely terminated.")
def startMine(self) -> None:
"""
Frequent pattern mining process will start from here
Expand Down Expand Up @@ -402,7 +402,7 @@ def printResults(self) -> None:
_ap = Apriori(_ab._sys.argv[1], _ab._sys.argv[3], _ab._sys.argv[4])
if len(_ab._sys.argv) == 4:
_ap = Apriori(_ab._sys.argv[1], _ab._sys.argv[3])
_ap.startMine()
_ap.mine()
_ap.mine()
print("Total number of Frequent Patterns:", len(_ap.getPatterns()))
_ap.save(_ap._sys.argv[2])
Expand Down
4 changes: 2 additions & 2 deletions PAMI/frequentPattern/basic/Aprioribitset.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ def _creatingItemSets(self):
print("File Not Found")
self._minSup = self._convert(self._minSup)

@deprecated("It is recommended to use 'mine()' instead of 'startMine()' for mining process. Starting from January 2025, 'startMine()' will be completely terminated.")
@deprecated("It is recommended to use 'mine()' instead of 'mine()' for mining process. Starting from January 2025, 'mine()' will be completely terminated.")

def startMine(self):
self.mine()
Expand Down Expand Up @@ -407,7 +407,7 @@ def printResults(self):
_ap = Aprioribitset(_ab._sys.argv[1], _ab._sys.argv[3], _ab._sys.argv[4])
if len(_ab._sys.argv) == 4:
_ap = Aprioribitset(_ab._sys.argv[1], _ab._sys.argv[3])
_ap.startMine()
_ap.mine()
_ap.mine()
print("Total number of Frequent Patterns:", len(_ap.getPatterns()))
_ap.save(_ab._sys.argv[2])
Expand Down
4 changes: 2 additions & 2 deletions PAMI/frequentPattern/basic/ECLAT.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ def _convert(self, value) -> float:
value = int(value)
return value

@deprecated("It is recommended to use 'mine()' instead of 'startMine()' for mining process. Starting from January 2025, 'startMine()' will be completely terminated.")
@deprecated("It is recommended to use 'mine()' instead of 'mine()' for mining process. Starting from January 2025, 'mine()' will be completely terminated.")
def startMine(self) -> None:
"""
Frequent pattern mining process will start from here
Expand Down Expand Up @@ -396,7 +396,7 @@ def printResults(self) -> None:
_ap = ECLAT(_ab._sys.argv[1], _ab._sys.argv[3], _ab._sys.argv[4])
if len(_ab._sys.argv) == 4:
_ap = ECLAT(_ab._sys.argv[1], _ab._sys.argv[3])
_ap.startMine()
_ap.mine()
_ap.mine()
print("Total number of Frequent Patterns:", len(_ap.getPatterns()))
_ap.save(_ab._sys.argv[2])
Expand Down
Loading

0 comments on commit be45620

Please sign in to comment.