We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5ce6b0d commit 91ad990Copy full SHA for 91ad990
src/ex2_soft_margin_svm.py
@@ -24,7 +24,6 @@ def plot_image_matrix(images, titles, h, w, n_row=3, n_col=4) -> None:
24
plt.figure(figsize=(1.8 * n_col, 2.4 * n_row))
25
plt.subplots_adjust(bottom=0, left=0.01, right=0.99, top=0.90, hspace=0.35)
26
indices = np.arange(n_row * n_col)
27
- np.random.shuffle(indices)
28
for i in range(n_row * n_col):
29
plt.subplot(n_row, n_col, i + 1)
30
plt.imshow(images[indices[i]].reshape((h, w)), cmap=plt.cm.gray)
0 commit comments