質問編集履歴
4
試したことの修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -272,10 +272,10 @@
|
|
272
272
|
|
273
273
|
```python
|
274
274
|
|
275
|
-
(-) class_mode="categorical",
|
276
|
-
|
277
275
|
(-) class_mode="sparse",
|
278
276
|
|
277
|
+
(+) class_mode="categorical",
|
278
|
+
|
279
279
|
```
|
280
280
|
|
281
281
|
これらを試してみたのですが、特に変わったことはありませんでした。
|
3
試したことの追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -248,4 +248,36 @@
|
|
248
248
|
|
249
249
|
|
250
250
|
|
251
|
+
# 試したこと
|
252
|
+
|
253
|
+
```python
|
254
|
+
|
255
|
+
(-)model.compile(
|
256
|
+
|
257
|
+
(-) optimizer="adam", loss="sparse_categorical_crossentropy", metrics=["accuracy"]
|
258
|
+
|
259
|
+
(-))
|
260
|
+
|
261
|
+
|
262
|
+
|
263
|
+
(+)model.compile(
|
264
|
+
|
265
|
+
(+) optimizer="adam", loss="categorical_crossentropy", metrics=["accuracy"]
|
266
|
+
|
267
|
+
(+))
|
268
|
+
|
269
|
+
```
|
270
|
+
|
271
|
+
|
272
|
+
|
273
|
+
```python
|
274
|
+
|
275
|
+
(-) class_mode="categorical",
|
276
|
+
|
277
|
+
(-) class_mode="sparse",
|
278
|
+
|
279
|
+
```
|
280
|
+
|
281
|
+
これらを試してみたのですが、特に変わったことはありませんでした。
|
282
|
+
|
251
283
|
以上、よろしくお願い致します。
|
2
class_modeに関して変更しました
test
CHANGED
File without changes
|
test
CHANGED
@@ -18,7 +18,9 @@
|
|
18
18
|
|
19
19
|
変更箇所
|
20
20
|
|
21
|
+
```
|
22
|
+
|
21
|
-
|
23
|
+
class_mode="categorical",
|
22
24
|
|
23
25
|
から
|
24
26
|
|
1
class_modeに関して変更しました
test
CHANGED
File without changes
|
test
CHANGED
@@ -16,6 +16,20 @@
|
|
16
16
|
|
17
17
|
これはなぜなのでしょうか?
|
18
18
|
|
19
|
+
変更箇所
|
20
|
+
|
21
|
+
```class_mode="categorical",
|
22
|
+
|
23
|
+
から
|
24
|
+
|
25
|
+
class_mode="sparse",
|
26
|
+
|
27
|
+
に変更しました。
|
28
|
+
|
29
|
+
```
|
30
|
+
|
31
|
+
|
32
|
+
|
19
33
|
![イメージ説明](ce6feb7c83c359b3c575cb8fa1f431c7.png)
|
20
34
|
|
21
35
|
|