質問編集履歴

2

エラー文修正

2020/02/20 15:40

投稿

amaturePy
amaturePy

スコア131

test CHANGED
File without changes
test CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  ModuleNotFoundError Traceback (most recent call last)
8
8
 
9
- <ipython-input-5-7758a2ac4e20> in <module>
9
+ <ipython-input-7-9ab98298df10> in <module>
10
10
 
11
11
  ----> 1 from keras.models import Sequential
12
12
 
@@ -14,9 +14,9 @@
14
14
 
15
15
  3
16
16
 
17
- 4 model_rnn = Sequential()
17
+ 4 model_lstm = Sequential()
18
18
 
19
- 5 model_rnn.add(SimpleRNN(n_mid, input_shape=(n_rnn, n_in), return_sequences=False))
19
+ 5 model_lstm.add(LSTM(n_mid, input_shape=(n_rnn, len(chars))))
20
20
 
21
21
 
22
22
 

1

エラー文追加

2020/02/20 15:40

投稿

amaturePy
amaturePy

スコア131

test CHANGED
File without changes
test CHANGED
@@ -4,7 +4,23 @@
4
4
 
5
5
  ```
6
6
 
7
+ ModuleNotFoundError Traceback (most recent call last)
8
+
9
+ <ipython-input-5-7758a2ac4e20> in <module>
10
+
11
+ ----> 1 from keras.models import Sequential
12
+
13
+ 2 from keras.layers import Dense, LSTM
14
+
15
+ 3
16
+
17
+ 4 model_rnn = Sequential()
18
+
19
+ 5 model_rnn.add(SimpleRNN(n_mid, input_shape=(n_rnn, n_in), return_sequences=False))
20
+
21
+
22
+
7
- No module named 'keras'
23
+ ModuleNotFoundError: No module named 'keras'
8
24
 
9
25
  ```
10
26