mirror of
https://gitee.com/TheAlgorithms/Statistical-Learning-Method_Code.git
synced 2025-01-03 17:32:21 +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():
|
for line in fr.readlines():
|
||||||
# 对每一行数据按切割福','进行切割,返回字段列表
|
# 对每一行数据按切割福','进行切割,返回字段列表
|
||||||
curLine = line.strip().split(',')
|
curLine = line.strip().split(',')
|
||||||
#十分类,list中放置标签
|
#二分类,list中放置标签
|
||||||
if int(curLine[0]) == 0:
|
if int(curLine[0]) == 0:
|
||||||
labelList.append(1)
|
labelList.append(1)
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user