Repository navigation
feat: novelty pressure tests — Phase 2 benchmark honesty - #8
Closed
cschanhniem wants to merge 1 commit into
Closed
cschanhniem wants to merge 1 commit into
cschanhniem wants to merge 1 commit into
Conversation
Phase 2: Novelty pressure — top candidates must not be mere copies of known AMP motifs. - Add examples/benchmark/novelty_pressure_pool.csv: 11 sequences including 3 near-dups of known references (NOV-DUP-*), 3 genuinely novel AMP-like sequences (NOV-NEW-*), and 5 non-AMP negatives (NOV-NEG-*) - Add test_novelty_pressure.py: 13 tests verifying: - Exact reference copies receive novelty = 0.0 - 1-substitution near-dups receive novelty < 0.20 (below min_novelty threshold) - Genuinely novel sequences receive novelty >= 0.20 - Novelty decreases monotonically with increasing reference similarity - nearest_reference field is populated for near-duplicate candidates - Pipeline min_novelty filter excludes near-dups from selection - Exact reference copies never appear in selected batch - Novel AMP-like candidates preferentially selected over near-dups - Near-dups do not dominate the top-5 ranked (novelty weighting has effect) - Add recall_at_k, random_recall_at_k, enrichment_factor, benchmark_summary to evaluate.py - Fix ruff F401 unused imports across pipeline.py, test_cli.py, test_pipeline_filters.py - 50 tests passing, ruff clean
Collaborator
Author
|
Superseded by PR #11 (feat/integrate-all-phases), which merges all Phase 2 + Phase 3 work into a single consolidation PR with 251 tests passing. |
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.
Summary
Implements Phase 2: Novelty pressure from AGENTS.md:
This PR verifies that the pipeline actively penalizes near-duplicate copies of known AMPs and selects genuinely novel sequences instead.
Test dataset:
examples/benchmark/novelty_pressure_pool.csvWhat the tests prove
nearest_referencepopulated for near-dupsTest plan
make test— 50 tests passruff check src tests— clean