Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
lm-evaluation-harness
Commits
75db3899
Commit
75db3899
authored
Nov 30, 2020
by
Leo Gao
Browse files
Update docstring
parent
e3031e84
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
4 deletions
+1
-4
lm_eval/base.py
lm_eval/base.py
+1
-4
No files found.
lm_eval/base.py
View file @
75db3899
...
@@ -5,10 +5,7 @@ import random
...
@@ -5,10 +5,7 @@ import random
class
LM
(
abc
.
ABC
):
class
LM
(
abc
.
ABC
):
@
abc
.
abstractmethod
@
abc
.
abstractmethod
def
loglikelihood
(
self
,
context
,
continuation
):
def
loglikelihood
(
self
,
context
,
continuation
):
"""Compute log-likelihood of a generation a continuation from a context
"""Compute log-likelihood of generating a continuation from a context
Assume that the final text will simple be
context + continuation
:param context: str
:param context: str
Context string
Context string
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment