Closed RobinGuillard closed 4 years ago
I don't know how you do your resampling
https://stackoverflow.com/questions/24920516/downsize-series-containing-boolean-data-with-resample
with something like
ds = ts.resample('0.25ms', how=np.any)
if you want to say that any positive within 250ms
e.g. scipy.signal.resample_poly
maybe overkill but it should we if the up or downsampling factor is a multiple of the number of epochs (but usually, it won't). Maybe worse a try.
closed by #66
When dealing with valid_labels merges, here is one important pytesting I've done:
dealing with tricky case 1:
dealing with tricky case 2:
Unhappily the algo returns [True, True] for first test and [True False] for second, so the first assert fails. There should be a "domination" of false over True that makes both cases go in the same direction.
Again, it's just a singular case as in practise we never go in the direction of downsampling.