From 0853772faa14e258787cd1eb6834975ecf9c14a0 Mon Sep 17 00:00:00 2001 From: jiangzhonglian Date: Wed, 1 Mar 2017 20:33:29 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=B7=A5=E5=85=B7=E7=B1=BB?= =?UTF-8?q?=E4=BF=A1=E6=81=AF=E5=A2=9E=E7=9B=8A=E7=9A=84=E8=AE=A1=E7=AE=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../tools/{DecisionTree.py => DecisionTree_getInfoGain.py} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename src/python/tools/{DecisionTree.py => DecisionTree_getInfoGain.py} (98%) 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)