-
Notifications
You must be signed in to change notification settings - Fork 698
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor make_examples and variant_labeler into an interface that's c…
…ompatible with the to-be-added haplotype-aware v2 labeler. -- Now the variant labeler sees all of the candidates in a region, rather than provided them one-at-a-time by make_examples. -- As a side effect, we no longer produce examples for candidates that won't receive a label, likely significantly speeding up training runs of make_examples. -- Refactored and cleaned up a bunch of code in variant_labeler, introducing a new VariantLabel class holding the result of the labeler on a candidate. -- Moved VariantCounters into variant_labeler, as this functionality will be replaced by a new, better protobuf-based stats tracker in a future CL. Besides moving the code nothing changed here. -- As part of the refactoring more cleanly separated the making of examples (in make_examples) from the labeling of examples (in variant_labeler). Now make_examples really doesn't know anything about how labels are assigned. In particular this impacted the previous function label_variant, which knew quite a bit about how the previous labeler actually worked. -- Note there are many TODOs in the current code, which is intentional as they will be addressed in future CLs that bring in the new labeler algorithm. PiperOrigin-RevId: 187180297
- Loading branch information
mdepristo
authored and
Copybara-Service
committed
Feb 27, 2018
1 parent
cf20d97
commit 0a159f3
Showing
5 changed files
with
480 additions
and
290 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Oops, something went wrong.