-
Notifications
You must be signed in to change notification settings - Fork 209
Add "recording"
to keys
in RecordingSampler
; docs fix
#614
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
- Recordings are incorrectly treated as contiguous by `SequenceSampler` due to lack of `groupby` upon `"recording"`. - `plot_sleep_staging_chambon2018` calls `n_windows = n_windows_stride` "maximal overlap", but that doesn't make sense to me, isn't it minimal overlap? Updated docs accordingly. - typo fix
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #614 +/- ##
=======================================
Coverage 87.25% 87.25%
=======================================
Files 67 67
Lines 5980 5980
=======================================
Hits 5218 5218
Misses 762 762 |
@@ -18,8 +18,8 @@ class RecordingSampler(Sampler): | ||
Parameters | ||
---------- | ||
metadata : pd.DataFrame | ||
DataFrame with at least one of {subject, session, run} columns for each | ||
window in the BaseConcatDataset to sample examples from. Normally | ||
DataFrame with at least one of {subject, session, run, recording} columns |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what is a recording? how does a session differ from a recording?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know, sounds like a question for other maintainers.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not consistent across all datasets; some use recording as a file unit, others use session, and some sessions have many recordings (I don't know why).
Number of windows between two consecutive sequences. | ||
Number of windows between two consecutive starts of sequences. | ||
n_windows_stride=1 is maximal overlap. | ||
n_windows_stride=n_windows is minimal overlap. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minimal overlap meaning no overlap or a single overlapping window? assume it is no overlap right? then maybe better to write like that?
SequenceSampler
due to lack ofgroupby
upon"recording"
. I'm unsure this is the intended fix, but it does work.plot_sleep_staging_chambon2018
callsn_windows = n_windows_stride
"maximal overlap", but that doesn't make sense to me, isn't it minimal overlap? Updated docs accordingly.