Introducing coarse-grained molecular dynamics simulations and updates to training - #9
Open
datagato wants to merge 7 commits into
Open
Introducing coarse-grained molecular dynamics simulations and updates to training#9datagato wants to merge 7 commits into
datagato wants to merge 7 commits into
Conversation
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.
High-level updates from this PR:
with SCOPe-distance-scaled margins + HierarchicalPKSampler (optional fold/superfamily
stratification). Wired into the train script as
--loss triplet_hierarchy, producing anL2-normalized embedding model trained and early-stopped on validation Precision@K rather
than a classifier. Fully parameterized (embed_dim, triplet_p/k, margins, base_margin,
families_per_stratum, min_family_size, stratify_level, early_stop_level) with collapse
diagnostics (pos/neg distance, valid_anchor_frac, paired_frac). This is an optional path and the previous usage still applies.
--model vit) alongside the from-scratch CNN and ResNet18,including fixed 224x224 resize handling (224x224 is required for this model so all proteograms must be resized) and trailing-block fine-tuning.
meta} embedding format and exposes embedding_meta; measure_similarity_v2 and
query_similar_proteins now derive the search-time pad target (and query length cutoff) from
the checkpoint's recorded max_image_size, falling back to a new config
search_pad_size.Fixes a silent train/eval mismatch that cropped/rescaled larger proteins at search time.
back to args, yielding batch_size=None), and roc_auc_score failure on 2-class eval sets.