Skip to content

Commit f58cac8

Browse files
Update lr_test.py
1 parent 76e4350 commit f58cac8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Chapter_1 Logistic Regression/lr_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def save_result(file_name, result):
6868
#输出预测结果到文件
6969
tmp = []
7070
for i in xrange(m):
71-
tmp.append(str(h[i, 0]))
71+
tmp.append(str(result[i, 0]))
7272
f_result = open(file_name, "w")
7373
f_result.write("\t".join(tmp))
7474
f_result.close()

0 commit comments

Comments
 (0)