Skip to content
This repository was archived by the owner on Jul 28, 2025. It is now read-only.

CU-8696v2j42: Add test to make sure per-cui counts are kept when creating folds - #508

Merged
mart-r merged 2 commits into
masterfrom
CU-8696v2j42-per-ann-fold-fix
Dec 9, 2024
Merged

CU-8696v2j42: Add test to make sure per-cui counts are kept when creating folds#508
mart-r merged 2 commits into
masterfrom
CU-8696v2j42-per-ann-fold-fix

Conversation

@mart-r

@mart-r mart-r commented Nov 27, 2024

Copy link
Copy Markdown
Collaborator

Currently, when splitting per-annotations, not all annotations are used.
In fact, only the annotations from the first few documents/projects would be used.
That is because for each fold, the number of annotations already used is not considered.

The PR adds a test to show that this is currently problematic (first commit).
And then introduces the relevant fix.

@tomolopolis

Copy link
Copy Markdown
Member

@adam-sutton-1992 adam-sutton-1992 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM

@mart-r
mart-r merged commit 00c0dd0 into master Dec 9, 2024
@mart-r
mart-r deleted the CU-8696v2j42-per-ann-fold-fix branch January 23, 2025 09:53
mart-r added a commit that referenced this pull request Feb 12, 2025
…ting folds (#508)

* CU-8696v2j42: Add test to make sure per-cui counts are kept when creating folds

* CU-8696v2j42: Fix per annotation fold creation
mart-r added a commit that referenced this pull request Feb 12, 2025
…ting folds (#508)

* CU-8696v2j42: Add test to make sure per-cui counts are kept when creating folds

* CU-8696v2j42: Fix per annotation fold creation
@mart-r
mart-r restored the CU-8696v2j42-per-ann-fold-fix branch February 18, 2025 16:24
@mart-r
mart-r deleted the CU-8696v2j42-per-ann-fold-fix branch February 18, 2025 16:26
alhendrickson pushed a commit to CogStack/cogstack-nlp that referenced this pull request Jul 1, 2025
…ting folds (CogStack/MedCAT#508)

* CU-8696v2j42: Add test to make sure per-cui counts are kept when creating folds

* CU-8696v2j42: Fix per annotation fold creation
alhendrickson pushed a commit to CogStack/cogstack-nlp that referenced this pull request Jul 1, 2025
…ting folds (CogStack/MedCAT#508)

* CU-8696v2j42: Add test to make sure per-cui counts are kept when creating folds

* CU-8696v2j42: Fix per annotation fold creation
alhendrickson pushed a commit to CogStack/cogstack-nlp that referenced this pull request Jul 1, 2025
…ting folds (CogStack/MedCAT#508)

* CU-8696v2j42: Add test to make sure per-cui counts are kept when creating folds

* CU-8696v2j42: Fix per annotation fold creation
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants