Research Article
Application of Data Mining in Traditional Benchmark Evaluation Model for Buildings Energy Consumption
Algorithm 2
An improved Apriori algorithm for mining association rules.
(1) | K = 1 | (2) | Fk = {i |i ε I ^ σ ({i}) ≥ N ∗ min sup} | | {Find all frequent 1 item-sets} | (3) | Repeat | (4) | k = k + 1 | (5) | CK = Apriori-gen (Fk + 1) | | {Make candidate items} | (6) | for each transaction t ε T do | (7) | Ct = subset (Ck, t) | (8) | {Identify all candidates that fit to t} | (9) | for each candidate item-set | (10) | c ε Ct do | (11) | σ (c) = σ (c) + 1 | | {Increase support count} | (12) | end for | (13) | end for |
|