February 2018
Intermediate to advanced
378 pages
10h 14m
English
The first step of the algorithm that we implement is based on the support measure. This function returns a set of all item sets with support larger than minSupport:
func frequentItemSets(minSupport: Double) -> Set<ItemSet> {
var itemSets = Set<ItemSet>()
let emptyItemSet: ItemSet = ItemSet()
supporters[emptyItemSet] = Array(0 ..< transactions.count)
Here we use the priority queue data structure to keep track of possible extensions.
To make it ...
Read now
Unlock full access