Skip to content

MAMEM dataset evaluation fails due to cv_split 5 in eval #239

Closed

Description

@Div12345

Within Session Evaluation fails while running for MAMEM dataset with the following error -

/usr/local/lib/python3.7/dist-packages/sklearn/model_selection/_split.py:672: UserWarning: The least populated class in y has only 4 members, which is less than n_splits=5.
% (min_groups, self.n_splits)), UserWarning)

The CV has been hard coded as 5 in the Evaluation -

cv = StratifiedKFold(5, shuffle=True, random_state=self.random_state)

Activity

  1. Div12345 commented on Oct 12, 2021

    @Div12345
    ContributorAuthor

    As per discussion with @sylvchev, a possible cause of this might be from the Rest condition being included in the data. Need to check the data in further detail.

  2. sylvchev commented on Oct 14, 2021

    @sylvchev
    Member

    It seems that this is not the reason: there is a resting period but is it is not extracted in the actual dataset class. The only classes available are the flash frequencies : 6.66, 7.5, 8.57, 10 and 12 Hz.
    For MAMEM1, there are between 12 and 20 trials per class, for MAMEM2 and MAMEM3, between 20 to 30 trials per class. I'm re-checking the trials ID, there are different (and conflicting) indications in the documentation on the website, in the data description (PDF) and in the matlab codebase.

  3. sylvchev commented on Jan 24, 2022

    @sylvchev
    Member

    After some investigation, the problem is an incorrect description: MAMEM sessions are instead 'runs'. The errors come from the low number of stimulus in each runs. PR #256 correct this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions