質問編集履歴

1

コード改善

2020/12/08 16:45

投稿

kusegasugoi0221
kusegasugoi0221

スコア11

test CHANGED
File without changes
test CHANGED
@@ -412,8 +412,38 @@
412
412
 
413
413
  ```ここに言語を入力
414
414
 
415
+ Traceback (most recent call last):
416
+
417
+
418
+
419
+ File "C:\Users\Desktop\tSNE_CNN.py", line 242, in <module>
420
+
421
+ main()
422
+
423
+
424
+
425
+ File "C:\Users\Desktop\tSNE_CNN.py", line 126, in main
426
+
427
+ X = np.r_[imgs1, imgs2, imgs3, imgs4, imgs5, imgs6, imgs7, imgs8, imgs9, imgs10, imgs11, imgs12, imgs13, imgs14, imgs15, imgs16]
428
+
429
+
430
+
431
+ File "C:\anaconda\lib\site-packages\numpy\lib\index_tricks.py", line 406, in __getitem__
432
+
433
+ res = self.concatenate(tuple(objs), axis=axis)
434
+
435
+
436
+
437
+ File "<__array_function__ internals>", line 6, in concatenate
438
+
439
+
440
+
415
441
  ValueError: all the input arrays must have same number of dimensions, but the array at index 0 has 1 dimension(s) and the array at index 1 has 5 dimension(s)
416
442
 
443
+
444
+
445
+
446
+
417
447
  ```
418
448
 
419
449
  コードのエラーを読み取るにコードの最後当たりの場所の以下のコードがエラーの原因と考えます