Commit 75920267 authored by Leo Gao's avatar Leo Gao
Browse files

Change nll to loglikelihood

parent 8a5a5f74
......@@ -7,7 +7,7 @@ class LM(abc.ABC):
pass
@abc.abstractmethod
def nll_of(self, context, continuation):
def loglikelihood(self, context, continuation):
pass
......
......@@ -15,5 +15,5 @@ class GPT2LM(LM):
# chop off the prompt and the final eos token
return self.tok.decode(res[0][len(context[0]):-1]).strip()
def nll_of(self, context, continuation):
pass
\ No newline at end of file
def loglikelihood(self, context, continuation):
pass
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment