generated from ashleve/lightning-hydra-template
-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
ardagoreci
committed
Nov 24, 2023
1 parent
8141cb7
commit 80d3e7d
Showing
8 changed files
with
243 additions
and
58 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
_target_: src.data.protein_datamodule.ProteinDataModule | ||
data_dir: "./data/" | ||
resolution_thr: 3.5 # Resolution threshold for PDB structures | ||
min_seq_id: 0.3 # Minimum sequence identity for MMSeq2 clustering | ||
crop_size: 384 # The number of residues to crop the proteins to. | ||
max_length: 10_000 # Entries with total length of chains larger than max_length will be disregarded. | ||
use_fraction: 1.0 # the fraction of the clusters to use (first N in alphabetic order) | ||
entry_type: "chain" # { "biounit", "chain", "pair" } the type of entries to generate | ||
classes_to_exclude: ['homomers', 'heteromers'] # a list of classes to exclude from the dataset | ||
mask_residues: False # if True, the masked residues will be added to the output | ||
lower_limit: 15 # the lower limit of the number of residues to mask | ||
upper_limit: 100 # the upper limit of the number of residues to mask | ||
mask_frac: None # if given, the number of residues to mask is mask_frac times the length of the chain | ||
mask_sequential: False # if True, the masked residues will be neighbors in the sequence; otherwise geometric mask | ||
mask_whole_chains: False # if True, the whole chain is masked | ||
force_binding_sites_frac: 0.15 # | ||
batch_size: 64 # The batch size. Defaults to `64`. | ||
num_workers: 0 # The number of workers. Defaults to `0`. | ||
pin_memory: False # Whether to pin memory. Defaults to `False`. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
_target_: src.models.kestrel_module.KestrelLitModule | ||
|
||
optimizer: | ||
_target_: torch.optim.Adam | ||
_partial_: true | ||
lr: 0.001 | ||
weight_decay: 0.0 | ||
|
||
scheduler: | ||
_target_: torch.optim.lr_scheduler.ReduceLROnPlateau | ||
_partial_: true | ||
mode: min | ||
factor: 0.1 | ||
patience: 10 | ||
|
||
structure_net: | ||
_target_: src.models.structure_net.StructureNet | ||
c_s: 384 | ||
c_z: 128 | ||
n_structure_layer: 4 | ||
n_structure_block: 1 | ||
c_hidden_ipa: 16 | ||
n_head_ipa: 12 | ||
n_qk_point: 4 | ||
n_v_point: 8 | ||
ipa_dropout: 0.1 | ||
n_structure_transition_layer: 1 | ||
structure_transition_dropout: 0.1 | ||
|
||
pair_feature_net: | ||
_target_: src.models.pair_feature_net.PairFeatureNet | ||
c_z: 128 | ||
relpos_k: 32 | ||
|
||
# compile model for faster training with pytorch 2.0 | ||
compile: false |
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
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.