Skip to content

create_windows_from_events assigns inconsistent targets across recordings when mapping=None and n_jobs > 1 #1165

Closed

Description

@tayal-sarthak

Problem

When create_windows_from_events is called with mapping=None and n_jobs > 1, event labels can depend on which recording a worker processes. Each worker infers its own mapping instead of sharing one mapping for the concatenated dataset.

For example, consider three recordings with event descriptions left, right, right, and left. Serial windowing assigns right target 1 in both recordings. Parallel windowing can assign right target 0 in the second recording because that worker sees no left events. The resulting labels are inconsistent without an error.

Expected behavior

Inferring the mapping should give each event description the same target ID across recordings, regardless of n_jobs.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions