質問するログイン新規登録

質問編集履歴

1

エラー全文を「該当のソースコード」から「発生しているエラーメッセージ」に移動。エラー行に★追加。

2020/06/19 02:26

投稿

ganase
ganase

スコア4

title CHANGED
File without changes
body CHANGED
@@ -11,6 +11,21 @@
11
11
 
12
12
  ```
13
13
  TypeError: unsupported operand type(s) for %: 'builtin_function_or_method' and 'int'
14
+
15
+ TypeError Traceback (most recent call last)
16
+ <ipython-input-50-4fa0c8e38f05> in <module>()
17
+ 1 # create the autoencoder model
18
+ ----> 2 model = autoencoder_model(X_train)
19
+
20
+ 12 frames
21
+ /usr/local/lib/python3.6/dist-packages/tensorflow/python/framework/random_seed.py in _truncate_seed(seed)
22
+ 36
23
+ 37 def _truncate_seed(seed):
24
+ ---> 38 return seed % _MAXINT32 # Truncate to fit into 32-bit integer
25
+ 39
26
+ 40
27
+
28
+ TypeError: unsupported operand type(s) for %: 'builtin_function_or_method' and 'int'
14
29
  ```
15
30
 
16
31
  ### 該当のソースコード ★印
@@ -125,26 +140,10 @@
125
140
  model = Model(inputs=inputs, outputs=output)
126
141
  return model
127
142
 
128
- # ★この直下の行でエラーです。create the autoencoder model 
143
+ # create the autoencoder model 
129
- model = autoencoder_model(X_train)
144
+ model = autoencoder_model(X_train) #★この行でエラーです。
130
145
  model.compile(optimizer='adam', loss='mae')
131
146
  model.summary()
132
- ---------------------------------------------------------------------------
133
- TypeError Traceback (most recent call last)
134
- <ipython-input-50-4fa0c8e38f05> in <module>()
135
- 1 # create the autoencoder model
136
- ----> 2 model = autoencoder_model(X_train)
137
-
138
- 12 frames
139
- /usr/local/lib/python3.6/dist-packages/tensorflow/python/framework/random_seed.py in _truncate_seed(seed)
140
- 36
141
- 37 def _truncate_seed(seed):
142
- ---> 38 return seed % _MAXINT32 # Truncate to fit into 32-bit integer
143
- 39
144
- 40
145
-
146
- TypeError: unsupported operand type(s) for %: 'builtin_function_or_method' and 'int'
147
-
148
147
  ```
149
148
 
150
149
  ### 試したこと