Just run "DT_SampleTestCase.py" to check how the input format is and how the entropy and IG functions work. If you are using your own sample test file, in the beginning of the file, just type : from Exec import * Make sure all these fles are in the same directory as your test case file.
Chinmaya083/Entropy-and-information-gain-for-decision-tree
Functions to calculate the entropy and information gain for decision tree analysis.
Python