diff --git a/PAMI/multipleMinimumSupportBasedFrequentPattern/basic/CFPGrowthPlus.py b/PAMI/multipleMinimumSupportBasedFrequentPattern/basic/CFPGrowthPlus.py index 94cedbf5..a98c900c 100644 --- a/PAMI/multipleMinimumSupportBasedFrequentPattern/basic/CFPGrowthPlus.py +++ b/PAMI/multipleMinimumSupportBasedFrequentPattern/basic/CFPGrowthPlus.py @@ -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 @@ -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()