Re-arrange MNIST into two classes

You could try to adapt this code for your use case.

1 Like