The code should plot the first output of each batch.
If you are shuffling the data, it should be random, so I’m not sure what’s going on.
Also, why are you using the lowest probabilities via output_np = np.argmin(output_np, axis=1)?