質問編集履歴
4
テキストエディタで開いたCSVファイルに更新しました
test
CHANGED
File without changes
|
test
CHANGED
@@ -128,53 +128,47 @@
|
|
128
128
|
|
129
129
|
```
|
130
130
|
|
131
|
-
Date
|
131
|
+
Date,Data
|
132
|
-
|
132
|
+
|
133
|
-
1965/1/5
|
133
|
+
1965/1/5,
|
134
|
-
|
134
|
+
|
135
|
-
1965/1/6
|
135
|
+
1965/1/6,-0.497284146
|
136
|
-
|
136
|
+
|
137
|
-
1965/1/7
|
137
|
+
1965/1/7,-0.810010493
|
138
|
-
|
138
|
+
|
139
|
-
1965/1/8
|
139
|
+
1965/1/8,-0.949750073
|
140
|
-
|
140
|
+
|
141
|
-
1965/1/12
|
141
|
+
1965/1/12,-0.16388427
|
142
|
-
|
142
|
+
|
143
|
-
1965/1/13
|
143
|
+
1965/1/13,0.534587535
|
144
|
-
|
144
|
+
|
145
|
-
1965/1/14
|
145
|
+
1965/1/14,-0.609059694
|
146
|
-
|
146
|
+
|
147
|
-
1965/1/18
|
147
|
+
1965/1/18,1.391564293
|
148
|
-
|
148
|
+
|
149
|
-
1965/1/19
|
149
|
+
1965/1/19,0.105434899
|
150
|
-
|
150
|
+
|
151
|
-
1965/1/20
|
151
|
+
1965/1/20,0.114992886
|
152
|
-
|
152
|
+
|
153
|
-
1965/1/21
|
153
|
+
1965/1/21,-0.124438336
|
154
|
-
|
154
|
+
|
155
|
-
1965/1/22
|
155
|
+
1965/1/22,0.681599556
|
156
|
-
|
156
|
+
|
157
|
-
1965/1/25
|
157
|
+
1965/1/25,0.964351034
|
158
|
-
|
158
|
+
|
159
|
-
1965/1/26
|
159
|
+
1965/1/26,0.133713051
|
160
|
-
|
160
|
+
|
161
|
-
1965/1/27
|
161
|
+
1965/1/27,-0.810767248
|
162
|
-
|
162
|
+
|
163
|
-
1965/1/28
|
163
|
+
1965/1/28,0.878904551
|
164
|
-
|
164
|
+
|
165
|
-
1965/1/29
|
165
|
+
1965/1/29,0.396063218
|
166
|
-
|
166
|
+
|
167
|
-
1965/2/1
|
167
|
+
1965/2/1,-0.045063459
|
168
|
-
|
168
|
+
|
169
|
-
1965/2/2
|
169
|
+
1965/2/2,0.328819522
|
170
|
-
|
170
|
+
|
171
|
-
1965/2/3
|
171
|
+
1965/2/3,-0.746352469
|
172
|
-
|
173
|
-
1965/2/4 -1.081440629
|
174
|
-
|
175
|
-
1965/2/5 -0.157611147
|
176
|
-
|
177
|
-
1965/2/8 0.369465238
|
178
172
|
|
179
173
|
.
|
180
174
|
|
@@ -192,70 +186,68 @@
|
|
192
186
|
|
193
187
|
```
|
194
188
|
|
195
|
-
Date
|
196
|
-
|
197
|
-
1965/1/5
|
198
|
-
|
199
|
-
1965/1/6
|
200
|
-
|
201
|
-
1965/1/7
|
202
|
-
|
203
|
-
1965/1/8
|
204
|
-
|
205
|
-
1965/1/12
|
206
|
-
|
207
|
-
1965/1/13
|
208
|
-
|
209
|
-
1965/1/14
|
210
|
-
|
211
|
-
1965/1/18
|
212
|
-
|
213
|
-
1965/1/19
|
214
|
-
|
215
|
-
1965/1/20
|
216
|
-
|
217
|
-
1965/1/21
|
218
|
-
|
219
|
-
1965/1/22
|
220
|
-
|
221
|
-
1965/1/25
|
222
|
-
|
223
|
-
1965/1/26
|
224
|
-
|
225
|
-
1965/1/27
|
226
|
-
|
227
|
-
1965/1/28
|
228
|
-
|
229
|
-
1965/1/29
|
230
|
-
|
231
|
-
1965/2/1
|
232
|
-
|
233
|
-
1965/2/2
|
234
|
-
|
235
|
-
1965/2/3
|
236
|
-
|
237
|
-
1965/2/4
|
238
|
-
|
239
|
-
1965/2/5
|
240
|
-
|
241
|
-
1965/2/8
|
242
|
-
|
243
|
-
1965/2/9
|
244
|
-
|
245
|
-
1965/2/10
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
.
|
250
|
-
|
251
|
-
.
|
252
|
-
|
253
|
-
.
|
254
|
-
|
255
|
-
.
|
256
|
-
|
257
|
-
.
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
```
|
189
|
+
Date,1%以上,0%以上,-1%以上,-1%未満
|
190
|
+
|
191
|
+
1965/1/5,,,,
|
192
|
+
|
193
|
+
1965/1/6,0,0,1,0
|
194
|
+
|
195
|
+
1965/1/7,0,0,1,0
|
196
|
+
|
197
|
+
1965/1/8,0,0,1,0
|
198
|
+
|
199
|
+
1965/1/12,0,0,1,0
|
200
|
+
|
201
|
+
1965/1/13,0,1,0,0
|
202
|
+
|
203
|
+
1965/1/14,0,0,1,0
|
204
|
+
|
205
|
+
1965/1/18,1,0,0,0
|
206
|
+
|
207
|
+
1965/1/19,0,1,0,0
|
208
|
+
|
209
|
+
1965/1/20,0,1,0,0
|
210
|
+
|
211
|
+
1965/1/21,0,0,1,0
|
212
|
+
|
213
|
+
1965/1/22,0,1,0,0
|
214
|
+
|
215
|
+
1965/1/25,0,1,0,0
|
216
|
+
|
217
|
+
1965/1/26,0,1,0,0
|
218
|
+
|
219
|
+
1965/1/27,0,0,1,0
|
220
|
+
|
221
|
+
1965/1/28,0,1,0,0
|
222
|
+
|
223
|
+
1965/1/29,0,1,0,0
|
224
|
+
|
225
|
+
1965/2/1,0,0,1,0
|
226
|
+
|
227
|
+
1965/2/2,0,1,0,0
|
228
|
+
|
229
|
+
1965/2/3,0,0,1,0
|
230
|
+
|
231
|
+
1965/2/4,0,0,0,1
|
232
|
+
|
233
|
+
1965/2/5,0,0,1,0
|
234
|
+
|
235
|
+
1965/2/8,0,1,0,0
|
236
|
+
|
237
|
+
1965/2/9,0,1,0,0
|
238
|
+
|
239
|
+
1965/2/10,0,1,0,0
|
240
|
+
|
241
|
+
.
|
242
|
+
|
243
|
+
.
|
244
|
+
|
245
|
+
.
|
246
|
+
|
247
|
+
.
|
248
|
+
|
249
|
+
.
|
250
|
+
|
251
|
+
.
|
252
|
+
|
253
|
+
```
|
3
追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -88,13 +88,7 @@
|
|
88
88
|
|
89
89
|
|
90
90
|
|
91
|
-
```
|
92
|
-
|
93
|
-
|
91
|
+
ここでfloat変換にしよとした所
|
94
|
-
|
95
|
-
```
|
96
|
-
|
97
|
-
|
98
92
|
|
99
93
|
```
|
100
94
|
|
@@ -134,6 +128,10 @@
|
|
134
128
|
|
135
129
|
```
|
136
130
|
|
131
|
+
Date Data
|
132
|
+
|
133
|
+
1965/1/5
|
134
|
+
|
137
135
|
1965/1/6 -0.497284146
|
138
136
|
|
139
137
|
1965/1/7 -0.810010493
|
2
dataの中身を追記しました
test
CHANGED
File without changes
|
test
CHANGED
@@ -125,3 +125,139 @@
|
|
125
125
|
学習データx-data.csv 、ラベルデータt-data.csvは見出し行、日付列を外して、データを行列に展開。
|
126
126
|
|
127
127
|
学習データは(n-2,1)次行列、ラベルデータは(n-2,4)次行列 です。
|
128
|
+
|
129
|
+
|
130
|
+
|
131
|
+
|
132
|
+
|
133
|
+
##x-data.csv(開いたデータの中身)
|
134
|
+
|
135
|
+
```
|
136
|
+
|
137
|
+
1965/1/6 -0.497284146
|
138
|
+
|
139
|
+
1965/1/7 -0.810010493
|
140
|
+
|
141
|
+
1965/1/8 -0.949750073
|
142
|
+
|
143
|
+
1965/1/12 -0.16388427
|
144
|
+
|
145
|
+
1965/1/13 0.534587535
|
146
|
+
|
147
|
+
1965/1/14 -0.609059694
|
148
|
+
|
149
|
+
1965/1/18 1.391564293
|
150
|
+
|
151
|
+
1965/1/19 0.105434899
|
152
|
+
|
153
|
+
1965/1/20 0.114992886
|
154
|
+
|
155
|
+
1965/1/21 -0.124438336
|
156
|
+
|
157
|
+
1965/1/22 0.681599556
|
158
|
+
|
159
|
+
1965/1/25 0.964351034
|
160
|
+
|
161
|
+
1965/1/26 0.133713051
|
162
|
+
|
163
|
+
1965/1/27 -0.810767248
|
164
|
+
|
165
|
+
1965/1/28 0.878904551
|
166
|
+
|
167
|
+
1965/1/29 0.396063218
|
168
|
+
|
169
|
+
1965/2/1 -0.045063459
|
170
|
+
|
171
|
+
1965/2/2 0.328819522
|
172
|
+
|
173
|
+
1965/2/3 -0.746352469
|
174
|
+
|
175
|
+
1965/2/4 -1.081440629
|
176
|
+
|
177
|
+
1965/2/5 -0.157611147
|
178
|
+
|
179
|
+
1965/2/8 0.369465238
|
180
|
+
|
181
|
+
.
|
182
|
+
|
183
|
+
.
|
184
|
+
|
185
|
+
.
|
186
|
+
|
187
|
+
```
|
188
|
+
|
189
|
+
|
190
|
+
|
191
|
+
|
192
|
+
|
193
|
+
##t-data.csv(開いたデータの中身)
|
194
|
+
|
195
|
+
```
|
196
|
+
|
197
|
+
Date 1%以上 0%以上 -1%以上 -1%未満
|
198
|
+
|
199
|
+
1965/1/5
|
200
|
+
|
201
|
+
1965/1/6 0 0 1 0
|
202
|
+
|
203
|
+
1965/1/7 0 0 1 0
|
204
|
+
|
205
|
+
1965/1/8 0 0 1 0
|
206
|
+
|
207
|
+
1965/1/12 0 0 1 0
|
208
|
+
|
209
|
+
1965/1/13 0 1 0 0
|
210
|
+
|
211
|
+
1965/1/14 0 0 1 0
|
212
|
+
|
213
|
+
1965/1/18 1 0 0 0
|
214
|
+
|
215
|
+
1965/1/19 0 1 0 0
|
216
|
+
|
217
|
+
1965/1/20 0 1 0 0
|
218
|
+
|
219
|
+
1965/1/21 0 0 1 0
|
220
|
+
|
221
|
+
1965/1/22 0 1 0 0
|
222
|
+
|
223
|
+
1965/1/25 0 1 0 0
|
224
|
+
|
225
|
+
1965/1/26 0 1 0 0
|
226
|
+
|
227
|
+
1965/1/27 0 0 1 0
|
228
|
+
|
229
|
+
1965/1/28 0 1 0 0
|
230
|
+
|
231
|
+
1965/1/29 0 1 0 0
|
232
|
+
|
233
|
+
1965/2/1 0 0 1 0
|
234
|
+
|
235
|
+
1965/2/2 0 1 0 0
|
236
|
+
|
237
|
+
1965/2/3 0 0 1 0
|
238
|
+
|
239
|
+
1965/2/4 0 0 0 1
|
240
|
+
|
241
|
+
1965/2/5 0 0 1 0
|
242
|
+
|
243
|
+
1965/2/8 0 1 0 0
|
244
|
+
|
245
|
+
1965/2/9 0 1 0 0
|
246
|
+
|
247
|
+
1965/2/10 0 1 0 0
|
248
|
+
|
249
|
+
1965/2/12 0 0 1 0
|
250
|
+
|
251
|
+
.
|
252
|
+
|
253
|
+
.
|
254
|
+
|
255
|
+
.
|
256
|
+
|
257
|
+
.
|
258
|
+
|
259
|
+
.
|
260
|
+
|
261
|
+
.
|
262
|
+
|
263
|
+
```
|
1
タイトル変更
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
Pythonでエラー: too many indices for array の解決方法を教えてください!
|
test
CHANGED
@@ -2,9 +2,13 @@
|
|
2
2
|
|
3
3
|
|
4
4
|
|
5
|
+
|
6
|
+
|
7
|
+
ソースコード
|
8
|
+
|
5
9
|
```
|
6
10
|
|
7
|
-
|
11
|
+
|
8
12
|
|
9
13
|
import tensorflow as tf
|
10
14
|
|