Skip to content
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

Within Session splitter #664

Open
wants to merge 78 commits into
base: develop
Choose a base branch
from

Conversation

brunaafl
Copy link
Collaborator

This PR is a follow-up on PR #624 and is related to issue #612. It includes just the implementation for the WithinSessionSplitter data splitter.

brunaafl and others added 30 commits June 5, 2024 21:56
Deleting unified_eval, so it can be addressed on another pr. Working on tests.
Signed-off-by: Bruna Junqueira Lopes <[email protected]>
# Conflicts:
#	moabb/evaluations/metasplitters.py
#	moabb/tests/metasplits.py
Add shuffle and random_state parameters to WithinSession
@brunaafl
Copy link
Collaborator Author

Hi, @tomMoral, @bruAristimunha , @PierreGtch !
I'm so sorry for the delay, I had some other problems that made it difficult to pay more attention to the PR.

I added the functionality to pass a metasplitter, such as TimeSeries/PseudoOnline. The way I designed this object, metasplitter returns indexes for calibration and test sets. To ensure the splitter returns indexes for a train set also, if needed, I was wondering if we could always have StratifiedKFold to split train/test, and allow to pass PseudoOnline as an inner_cv to further split the test set into calibration and test if wanted.

Copy link
Collaborator

@PierreGtch PierreGtch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @brunaafl, thanks for all the work you put in!! About the delay, this is all voluntary work, so no need to apologise :)

I added the functionality to pass a metasplitter, such as TimeSeries/PseudoOnline. The way I designed this object, metasplitter returns indexes for calibration and test sets. To ensure the splitter returns indexes for a train set also, if needed, I was wondering if we could always have StratifiedKFold to split train/test, and allow to pass PseudoOnline as an inner_cv to further split the test set into calibration and test if wanted.

I’m not sure I understand your question. What is the difference between the train and the calibration sets?

I also left a few comments on the code

moabb/evaluations/metasplitters.py Outdated Show resolved Hide resolved
moabb/evaluations/metasplitters.py Outdated Show resolved Hide resolved
moabb/evaluations/metasplitters.py Outdated Show resolved Hide resolved
moabb/evaluations/splitters.py Outdated Show resolved Hide resolved
moabb/evaluations/splitters.py Outdated Show resolved Hide resolved
@bruAristimunha bruAristimunha enabled auto-merge (squash) February 7, 2025 13:23
auto-merge was automatically disabled February 7, 2025 13:37

Head branch was pushed to by a user without write access

@bruAristimunha
Copy link
Collaborator

please approve @tomMoral and @PierreGtch asap

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