I have a numpy array that looks like this: [1 -1 -1 1 1 1 -1 -1 -1 1 -1 -1 1 -1]
How do i find the location of the sequence [1 1 1 -1] ?
The output of the function should be something like: Occurrence = 3, since the sequence starts at index 3.
Thanks for helping me!