-
Notifications
You must be signed in to change notification settings - Fork 206
Open
Description
def createInitSet(dataSet):
retDict = {}
for trans in dataSet:
retDict[frozenset(trans)] = 1
return retDictthe code retDict[frozenset(trans)] = 1, not consider when two transactions are the same.
should changed to
def createInitSet(dataSet):
retDict = {}
for trans in dataSet:
retDict[frozenset(trans)] = retDict.get(frozenset(trans), 0) + 1
return retDictReactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels