diff --git a/src/python/tools/DecisionTree.py b/src/python/tools/DecisionTree_getInfoGain.py similarity index 98% rename from src/python/tools/DecisionTree.py rename to src/python/tools/DecisionTree_getInfoGain.py index a2974d91..316b6fe5 100644 --- a/src/python/tools/DecisionTree.py +++ b/src/python/tools/DecisionTree_getInfoGain.py @@ -120,5 +120,5 @@ if __name__ == '__main__': infoGain1 = getFeatureShannonEnt(dataSet1, labels) infoGain2 = getFeatureShannonEnt(dataSet2, labels) infoGain3 = getFeatureShannonEnt(dataSet3, labels) - print '香农熵: \n\t%s, \n\t%s, \n\t%s' % (infoGain1, infoGain2, infoGain3) + print '信息增益: \n\t%s, \n\t%s, \n\t%s' % (infoGain1, infoGain2, infoGain3)