回答編集履歴
1
エラーの修正
test
CHANGED
@@ -15,3 +15,25 @@
|
|
15
15
|
```
|
16
16
|
|
17
17
|
[以前の「テキストを一行ずつ読み込みたい」より](https://teratail.com/questions/154052)
|
18
|
+
|
19
|
+
|
20
|
+
|
21
|
+
その後、
|
22
|
+
|
23
|
+
ValueError: Error when checking target: expected dense_7 to have shape (2, 12) but got array with shape (2, 39065)
|
24
|
+
|
25
|
+
```ここに言語を入力
|
26
|
+
|
27
|
+
decoded = Dense(12, activation='relu')(encoded)
|
28
|
+
|
29
|
+
```
|
30
|
+
|
31
|
+
を
|
32
|
+
|
33
|
+
```ここに言語を入力
|
34
|
+
|
35
|
+
decoded = Dense(39065, activation='relu')(encoded)
|
36
|
+
|
37
|
+
```
|
38
|
+
|
39
|
+
に修正すると、正常に学習できました。
|