Research Article

Application of Data Mining in Traditional Benchmark Evaluation Model for Buildings Energy Consumption

Algorithm 1

Decision Tree.
(1)Make a node N;
(2)If all of the tuples in D belong to the same class, C then;
(3)N will be returned as a leaf node with the class C;
(4)if attribut_list is unfilled then;
(5)return N by way of a leaf node categorized with the majority class in D;//majority elective
(6)apply attribute_selection_method (D, attribut_list) to discovery the finest splitting_criterion;
(7)tag node N with splitting_criterion;
(8)if splitting_attribute is discrete-valued then;//not limited to binary-trees
(9)attribut_listattribut_list - splitting_attribute;//eliminate splitting_attribute
(10)for each outcomes j of splitting_criterion
//divider the tuples and produce sub-trees for each divider
(11)let Dj be the set of data tuples in D filling the results j;//a divider
(12)if Dj is unfilled then;
(13)assign a leaf labeled with the majority class in D to node N;
(14)else assign the node returned by Generate_Decision_tree (Dj, attribut_list) to node N;
end for
(15)return N;