Emania

Untitled

Jan 2nd, 2017
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.40 KB | None | 0 0
  1.     % Here, you should fill in the code of the apriori algorithm
  2.     % (see slides of the lecture: "APRIORI algorithm")
  3.     sortedA = find(mean(database) >= min_frequency);
  4.     while ~isempty(candidates)
  5.         nextWords = apriori_gen(candidates, sortedA)';
  6.         candidates = prune_itemsets(nextWords, database, min_frequency);
  7.         frequent_itemsets = [frequent_itemsets, candidates];
  8.     end
Advertisement
Add Comment
Please, Sign In to add comment