We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4720f95 commit 3d2cd8dCopy full SHA for 3d2cd8d
1 file changed
Chapter_6 BP/bp_test.py
@@ -34,11 +34,11 @@ def generate_data():
34
data[i, 1] = x[i, 1] * 9 - 4.5
35
# 2、将数据点保存到文件“test_data”中
36
f = open("test_data", "w")
37
- m,n = np.shape(dataTest)
+ m,n = np.shape(data)
38
for i in xrange(m):
39
tmp =[]
40
for j in xrange(n):
41
- tmp.append(str(dataTest[i,j]))
+ tmp.append(str(data[i,j]))
42
f.write("\t".join(tmp) + "\n")
43
f.close()
44
0 commit comments