Commit 2cd7fac
committed
Unify split logic in WithinSessionEvaluation
- Remove manual session loops from _evaluate and _evaluate_learning_curve
- Use WithinSessionSplitter to handle session iteration internally
- _evaluate_learning_curve now uses WithinSessionSplitter with
StratifiedShuffleSplit as inner CV class for consistency
- Track session changes from splitter indices and accumulate scores per session
- Reset random state per session in WithinSessionSplitter to match
original evaluation behavior where new splitters were created per session
- Update test reference to match this behavior
- Use random_state in learning curve evaluation for reproducibility1 parent b93ed57 commit 2cd7fac
File tree
3 files changed
+223
-151
lines changed- moabb
- evaluations
- tests
3 files changed
+223
-151
lines changed
0 commit comments