We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f58cac8 commit f8b60bfCopy full SHA for f8b60bf
1 file changed
Chapter_2 Softmax Regression/softmax_regression_train.py
@@ -21,7 +21,7 @@ def load_data(inputfile):
21
lines = line.strip().split("\t")
22
for i in xrange(len(lines) - 1):
23
feature_tmp.append(float(lines[i]))
24
- label_data.append(float(lines[-1]))
+ label_data.append(int(lines[-1]))
25
26
feature_data.append(feature_tmp)
27
f.close() # 关闭文件
0 commit comments