I do know formula for calculating entropy:
H(Y) = - ∑ (p(yj) * log2(p(yj)))
In words, select an attribute and for each value check target attribute value ... so p(yj) is the fraction of patterns at Node N are in category yj - one for true in target value and one one for false.
But I have a dataset in which target attribute is price, hence range. How to calculate entropy for this kinda dataset?
(Referred: http://decisiontrees.net/decision-trees-tutorial/tutorial-5-exercise-2/)