質問編集履歴

1

詳しいエラー箇所を表記しました

2017/07/20 08:39

投稿

pikaso
pikaso

スコア20

test CHANGED
File without changes
test CHANGED
@@ -82,4 +82,22 @@
82
82
 
83
83
  ```
84
84
 
85
+ ---------------------------------------------------------------------------
86
+
87
+ IndexError Traceback (most recent call last)
88
+
89
+ <ipython-input-12-46d604a03021> in <module>()
90
+
91
+ 5 codebook_size = 1000
92
+
93
+ 6
94
+
95
+ ----> 7 descriptors = np.vstack(data_descriptors[X_test])
96
+
97
+ 8 indices = np.random.choice(np.arange(len(descriptors)), size=500000, replace=False)
98
+
99
+ 9 kmeans = MiniBatchKMeans(n_clusters=codebook_size, n_init=10, random_state=0)
100
+
101
+
102
+
85
103
  IndexError: index 158 is out of bounds for axis 0 with size 36