Skip to content

Commit

Permalink
change name to compute_loglikelihood
Browse files Browse the repository at this point in the history
  • Loading branch information
delfosseaurelien committed Apr 30, 2021
1 parent d414e29 commit f25adbb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion biotransformers/tests/test_esm.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

def test_esm_loglikelihood():
test_trans = BioTransformers("esm1_t34_670M_UR100")
loglikelihood = test_trans.compute_loglikelihoods(test_sequences)
loglikelihood = test_trans.compute_loglikelihood(test_sequences)
assert isinstance(loglikelihood, np.ndarray)


Expand Down
2 changes: 1 addition & 1 deletion biotransformers/tests/test_protbert.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

def test_protbert_loglikelihood():
test_trans = BioTransformers("protbert")
loglikelihood = test_trans.compute_loglikelihoods(test_sequences)
loglikelihood = test_trans.compute_loglikelihood(test_sequences)
assert isinstance(loglikelihood, np.ndarray)


Expand Down
2 changes: 1 addition & 1 deletion biotransformers/wrappers/transformers_wrappers.py
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ def compute_logits(

return logits.numpy(), labels.numpy()

def compute_loglikelihoods(
def compute_loglikelihood(
self,
sequences_list: List[str],
batch_size: int = 1,
Expand Down

0 comments on commit f25adbb

Please sign in to comment.