Skip to content

Commit

Permalink
Update CFPGrowthPlus.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Likhitha-palla authored Oct 20, 2023
1 parent ada3686 commit 20ac3ff
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,7 @@ def getPatternsAsDataFrame(self):
dataframe = _fp._pd.DataFrame(data, columns=['Patterns', 'Support'])
return dataframe

def savePatterns(self, outFile):
def save(self, outFile):
"""Complete set of frequent patterns will be loaded in to a output file
:param outFile: name of the output file
Expand All @@ -617,6 +617,14 @@ def getPatterns(self):
"""
return self.__finalPatterns

def printResults(self) -> None:
""" this function is used to print the results
"""
print("Total number of Frequent Patterns:", len(self.getPatterns()))
print("Total Memory in USS:", self.getMemoryUSS())
print("Total Memory in RSS", self.getMemoryRSS())
print("Total ExecutionTime in ms:", self.getRuntime())


if __name__ == "__main__":
_ap = str()
Expand Down

0 comments on commit 20ac3ff

Please sign in to comment.