Skip to content

Instantly share code, notes, and snippets.

View mugrigoriev's full-sized avatar

Michael Grigoriev mugrigoriev

View GitHub Profile
@mugrigoriev
mugrigoriev / Apriori.py
Created November 7, 2015 18:45 — forked from marcelcaraciolo/Apriori.py
Apriori.py
#-*- coding:utf-8 - *-
def load_dataset():
"Load the sample dataset."
return [[1, 3, 4], [2, 3, 5], [1, 2, 3, 5], [2, 5]]
def createC1(dataset):
"Create a list of candidate item sets of size one."