質問編集履歴
1
詳細
test
CHANGED
File without changes
|
test
CHANGED
@@ -6,6 +6,42 @@
|
|
6
6
|
|
7
7
|
```python
|
8
8
|
|
9
|
+
# Loading data
|
10
|
+
|
11
|
+
from keras.datasets import cifar10
|
12
|
+
|
13
|
+
|
14
|
+
|
9
15
|
(X_train, Y_train), (X_test, Y_test) = cifar10.load_data()
|
10
16
|
|
17
|
+
|
18
|
+
|
19
|
+
print('X_train shape: {0}, Y_train shape: {1}'.format(X_train.shape, Y_train.shape))
|
20
|
+
|
11
21
|
```
|
22
|
+
|
23
|
+
|
24
|
+
|
25
|
+
```shell
|
26
|
+
|
27
|
+
X_train shape: (50000, 32, 32, 3), Y_train shape: (50000, 1)
|
28
|
+
|
29
|
+
```
|
30
|
+
|
31
|
+
|
32
|
+
|
33
|
+
## 試したこと
|
34
|
+
|
35
|
+
|
36
|
+
|
37
|
+
```
|
38
|
+
|
39
|
+
idx = np.where(Y_train == 7)
|
40
|
+
|
41
|
+
|
42
|
+
|
43
|
+
X_train = X_train[idx]
|
44
|
+
|
45
|
+
Y_train = Y_train[idx]
|
46
|
+
|
47
|
+
```
|