質問編集履歴

1

input_shapeを入れるのを忘れていたので修正と、model.summary()の結果の追加

2020/05/10 12:10

投稿

AIthon
AIthon

スコア76

test CHANGED
File without changes
test CHANGED
@@ -28,7 +28,7 @@
28
28
 
29
29
 
30
30
 
31
- model.add(Dense(3000, activation='sigmoid'))
31
+ model.add(Dense(3000, activation='sigmoid', input_shape=(30000,)))
32
32
 
33
33
 
34
34
 
@@ -48,6 +48,50 @@
48
48
 
49
49
  ```
50
50
 
51
+ **model.summary()の結果**
52
+
53
+ ```python
54
+
55
+ Model: "sequential_1"
56
+
57
+ _________________________________________________________________
58
+
59
+ Layer (type) Output Shape Param #
60
+
61
+ =================================================================
62
+
63
+ dense_1 (Dense) (None, 30000) 900030000
64
+
65
+ _________________________________________________________________
66
+
67
+ dense_2 (Dense) (None, 1000) 30001000
68
+
69
+ _________________________________________________________________
70
+
71
+ dense_3 (Dense) (None, 500) 500500
72
+
73
+ _________________________________________________________________
74
+
75
+ dense_4 (Dense) (None, 250) 125250
76
+
77
+ _________________________________________________________________
78
+
79
+ dense_5 (Dense) (None, 21) 5271
80
+
81
+ =================================================================
82
+
83
+ Total params: 930,662,021
84
+
85
+ Trainable params: 930,662,021
86
+
87
+ Non-trainable params: 0
88
+
89
+ _________________________________________________________________
90
+
91
+
92
+
93
+ ```
94
+
51
95
  **パソコン上のメモリ**・・・8GB(使用可能なのは実質5GB位)
52
96
 
53
97