Skip to content

fix(medcat): Training reset during fine tune - #629

Merged
mart-r merged 4 commits into
mainfrom
fix/medcat/training-reset-during-fine-tune
Oct 9, 2026
Merged

mart-r merged 4 commits into
mainfrom
fix/medcat/training-reset-during-fine-tune

Conversation

@mart-r

@mart-r mart-r commented Oct 8, 2026 •

Copy link
Copy Markdown
Collaborator

During fine tuning (cat.trainer.train_supervised_raw) the user can opt to reset concept train counts. This is so that the fine-tuning (i.e stuff that's generally been verified by a clinician) has more weight over the vast numbers of unsupervised training the model has seen.

However, so far this flow has been broken for datasets with concepts that are not in the model / CDB.

This PR fixes that by only resetting cui count for concepts in the CDB.

It also adds a few tests, some of which will fail upon the first commit the workflow runs on to demonstrate the issue.
The subsequent commit will provide the actual patch to fix the issue.

@mart-r
mart-r merged commit bf57b72 into main Oct 9, 2026
20 checks passed
@mart-r
mart-r deleted the fix/medcat/training-reset-during-fine-tune branch October 9, 2026 20:46
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.

2 participants