Permute MNIST by row #932
-
The current implementation of |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hi @kushalj001! At the moment the classic "PermutedMNIST" does not offer this feature but this should be rather easy to implement with a custom transformation! Here's the custom transformation used for the classic permutation. You can have a similar approach for your variation. Of course feel free to open a PR if you want to contribute back to Avalanche, that would be great and we can give you feedback about the implementation! |
Beta Was this translation helpful? Give feedback.
-
Thanks for the reply, can you take a brief look at this implementation? I have only changed 2 lines. In the
The next method is the
Thank you |
Beta Was this translation helpful? Give feedback.
Thanks for the reply, can you take a brief look at this implementation? I have only changed 2 lines. In the
PermutedMNIST
method, instead of creating a random permutation of 784, I create a permutation of 28. (This can be dynamic by taking in an additional parameter in the function likesequence_length
orpixel_per_input
, which by default could be 1).