This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
# calculating the Entropy and Information Gain for: Learning with Trees | |
# by: Aziz Alto | |
# see Information Gain: | |
# http://www.autonlab.org/tutorials/infogain.html | |
from __future__ import division |