Skip to content

Commit

Permalink
Rename classic variant to left-aligned
Browse files Browse the repository at this point in the history
  • Loading branch information
yutanagano committed Jun 2, 2024
1 parent 51a81c2 commit d1610c8
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"initargs": {}
},
"model": {
"name": "SCEPTR (classic)",
"name": "SCEPTR (left-aligned)",
"path_to_pretrained_state_dict": "model_saves/AB_SCEPTR_classic_MLM_only/state_dict.pt",
"token_embedder": {
"class": "CdrEmbedder",
Expand Down Expand Up @@ -100,4 +100,4 @@
}
},
"num_epochs": 100
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"initargs": {}
},
"model": {
"name": "SCEPTR (classic, MLM only)",
"name": "SCEPTR (left-aligned, MLM only)",
"path_to_pretrained_state_dict": null,
"token_embedder": {
"class": "CdrEmbedder",
Expand Down Expand Up @@ -98,4 +98,4 @@
}
},
"num_epochs": 100
}
}
10 changes: 5 additions & 5 deletions src/sceptr/variant.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ def mlm_only():
return load_variant("SCEPTR_MLM_only")


def classic():
return load_variant("SCEPTR_classic")
def left_aligned():
return load_variant("SCEPTR_left_aligned")


def classic_mlm_only():
return load_variant("SCEPTR_classic_MLM_only")
def left_aligned_mlm_only():
return load_variant("SCEPTR_left_aligned_MLM_only")


def cdr3_only():
Expand Down Expand Up @@ -66,4 +66,4 @@ def a_sceptr():


def b_sceptr():
return load_variant("B_SCEPTR")
return load_variant("B_SCEPTR")
4 changes: 2 additions & 2 deletions tests/test_variants.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ def dummy_data():
(
variant.default(),
variant.mlm_only(),
variant.classic(),
variant.classic_mlm_only(),
variant.left_aligned(),
variant.left_aligned_mlm_only(),
variant.cdr3_only(),
variant.cdr3_only_mlm_only(),
variant.large(),
Expand Down

0 comments on commit d1610c8

Please sign in to comment.