mirror of
https://gitee.com/TheAlgorithms/Statistical-Learning-Method_Code.git
synced 2024-12-22 12:48:55 +08:00
Correction of annotation error
This commit is contained in:
parent
6fae0d22cf
commit
e6588c7a2e
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user