Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Open
wants to merge 4 commits into
base: master
Choose a base branch
Loading
from

Conversation

OverLordGoldDragon
Copy link
Contributor

  • Recordings are incorrectly treated as contiguous by SequenceSampler due to lack of groupby upon "recording". I'm unsure this is the intended fix, but it does work.
  • 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

 - 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
Copy link

codecov bot commented May 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 87.25%. Comparing base (c409800) to head (0df5fc5).

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           

docs/whats_new.rst Show resolved Hide resolved
@@ -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
Copy link
Collaborator

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?

Copy link
Contributor Author

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.

Copy link
Collaborator

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.
Copy link
Contributor

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.