回答編集履歴

1

追記

2018/07/03 07:34

投稿

hayataka2049
hayataka2049

スコア30933

test CHANGED
@@ -62,7 +62,23 @@
62
62
 
63
63
  def read_file(filename):
64
64
 
65
+ # たぶんこんな感じ。もしかしたら間違ってるかも
66
+
67
+ with open(filename, 'r') as f:
68
+
65
- # dosomething
69
+ for i in f:
70
+
71
+ txt = i.split()
72
+
73
+ txt = [ float(s) for s in txt]
74
+
75
+ ds_tmp.append(txt)
76
+
77
+
78
+
79
+ ds = np.array(ds_tmp)
80
+
81
+ return ds
66
82
 
67
83
 
68
84