From e6588c7a2e6b3c7b454846d46968cde8035693da Mon Sep 17 00:00:00 2001 From: Dod-o <45008728+Dod-o@users.noreply.github.com> Date: Fri, 1 Feb 2019 22:35:02 +0800 Subject: [PATCH] Correction of annotation error --- Logistic_and_maximum_entropy_models/maxEntropy.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Logistic_and_maximum_entropy_models/maxEntropy.py b/Logistic_and_maximum_entropy_models/maxEntropy.py index dfcf2cb..9b0439a 100644 --- a/Logistic_and_maximum_entropy_models/maxEntropy.py +++ b/Logistic_and_maximum_entropy_models/maxEntropy.py @@ -36,7 +36,7 @@ def loadData(fileName): for line in fr.readlines(): # 对每一行数据按切割福','进行切割,返回字段列表 curLine = line.strip().split(',') - #十分类,list中放置标签 + #二分类,list中放置标签 if int(curLine[0]) == 0: labelList.append(1) else: @@ -296,4 +296,4 @@ if __name__ == '__main__': print('the accuracy is:', accuracy) # 打印时间 - print('time span:', time.time() - start) \ No newline at end of file + print('time span:', time.time() - start)