Skip to content

fix col name mismatch error#173

Merged
zmek merged 1 commit intomainfrom
fix/col-name-mistmatch-error
May 5, 2026
Merged

fix col name mismatch error#173
zmek merged 1 commit intomainfrom
fix/col-name-mistmatch-error

Conversation

@zmek
Copy link
Copy Markdown
Collaborator

@zmek zmek commented May 5, 2026

prepare_patient_snapshots now handles missing excluded columns consistently when single_snapshot_per_visit=True.

Previously, that code path raised a KeyError if exclude_columns contained names not present in the selected dataframe, while the multi-snapshot path already ignored missing columns. This patch adds errors="ignore" to the single-snapshot drop call, aligning behaviour across both modes and preventing unnecessary training failures.

@zmek zmek merged commit 8e38af7 into main May 5, 2026
6 checks passed
@zmek zmek deleted the fix/col-name-mistmatch-error branch May 5, 2026 09:30
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.

1 participant