mardi 7 avril 2020

is there a way to match patterns in a numpy array?

I have a large array with zeros and ones, array = [1 0 1 0 0 0 0 1 1 0 1 1]. How can I find matching patterns like 0 0, 0 1, 1 0, 1 1 in array

Aucun commentaire:

Enregistrer un commentaire