Add PubTator3 annotation, train/eval pipeline, and MLflow tracking - #1
Open
ghofrangaddeh50-web wants to merge 4 commits into
Open
Add PubTator3 annotation, train/eval pipeline, and MLflow tracking#1ghofrangaddeh50-web wants to merge 4 commits into
ghofrangaddeh50-web wants to merge 4 commits into
Conversation
ghofrangaddeh50-web
commented
Jun 2, 2026
- annotation_client: PubTator3 collector with BERN2 fallback, normalized to the existing BERN2 output shape so downstream NER preprocessing is unchanged
- trainer: stratified train/val/test split, StratifiedKFold CV, held-out evaluation (accuracy/precision/recall/f1/roc_auc), MLflow tracking + artifacts
- plain-Python entrypoints (train.py, demo_predict.py) so training/prediction run on native Windows where Metaflow cannot; Metaflow flows kept as thin wrappers over the same core logic
- requirements.txt, .gitignore, configs, and README workflow docs
- annotation_client: PubTator3 collector with BERN2 fallback, normalized to the existing BERN2 output shape so downstream NER preprocessing is unchanged - trainer: stratified train/val/test split, StratifiedKFold CV, held-out evaluation (accuracy/precision/recall/f1/roc_auc), MLflow tracking + artifacts - plain-Python entrypoints (train.py, demo_predict.py) so training/prediction run on native Windows where Metaflow cannot; Metaflow flows kept as thin wrappers over the same core logic - requirements.txt, .gitignore, configs, and README workflow docs Co-Authored-By: Claude <noreply@anthropic.com>
Add tests/ covering 7 failure scenarios (PubTator3 down, partial coverage, both down, fallback disabled, HTTP 429, log assertions, and a live integration test), plus conftest and shared fixtures. Add pytest.ini, requirements-dev.txt, a no-fallback config, and French docs explaining and exercising the fallback. Ignore test artifacts. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Keep the fallback explanation and testing guides local-only; they are not part of the shared codebase. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.