質問編集履歴

1

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

2020/06/19 02:26

投稿

ganase
ganase

スコア4

test CHANGED
File without changes
test CHANGED
@@ -24,6 +24,36 @@
24
24
 
25
25
  TypeError: unsupported operand type(s) for %: 'builtin_function_or_method' and 'int'
26
26
 
27
+
28
+
29
+ TypeError Traceback (most recent call last)
30
+
31
+ <ipython-input-50-4fa0c8e38f05> in <module>()
32
+
33
+ 1 # create the autoencoder model
34
+
35
+ ----> 2 model = autoencoder_model(X_train)
36
+
37
+
38
+
39
+ 12 frames
40
+
41
+ /usr/local/lib/python3.6/dist-packages/tensorflow/python/framework/random_seed.py in _truncate_seed(seed)
42
+
43
+ 36
44
+
45
+ 37 def _truncate_seed(seed):
46
+
47
+ ---> 38 return seed % _MAXINT32 # Truncate to fit into 32-bit integer
48
+
49
+ 39
50
+
51
+ 40
52
+
53
+
54
+
55
+ TypeError: unsupported operand type(s) for %: 'builtin_function_or_method' and 'int'
56
+
27
57
  ```
28
58
 
29
59
 
@@ -252,46 +282,14 @@
252
282
 
253
283
 
254
284
 
255
- # ★この直下の行でエラーです。create the autoencoder model 
285
+ # create the autoencoder model 
256
-
286
+
257
- model = autoencoder_model(X_train)
287
+ model = autoencoder_model(X_train) #★この行でエラーです。
258
288
 
259
289
  model.compile(optimizer='adam', loss='mae')
260
290
 
261
291
  model.summary()
262
292
 
263
- ---------------------------------------------------------------------------
264
-
265
- TypeError Traceback (most recent call last)
266
-
267
- <ipython-input-50-4fa0c8e38f05> in <module>()
268
-
269
- 1 # create the autoencoder model
270
-
271
- ----> 2 model = autoencoder_model(X_train)
272
-
273
-
274
-
275
- 12 frames
276
-
277
- /usr/local/lib/python3.6/dist-packages/tensorflow/python/framework/random_seed.py in _truncate_seed(seed)
278
-
279
- 36
280
-
281
- 37 def _truncate_seed(seed):
282
-
283
- ---> 38 return seed % _MAXINT32 # Truncate to fit into 32-bit integer
284
-
285
- 39
286
-
287
- 40
288
-
289
-
290
-
291
- TypeError: unsupported operand type(s) for %: 'builtin_function_or_method' and 'int'
292
-
293
-
294
-
295
293
  ```
296
294
 
297
295