"vscode:/vscode.git/clone" did not exist on "f4b94e73eece8fc0b10b599fef9caaaaab8d7077"
Unverified Commit dc1a17b1 authored by Leo Gao's avatar Leo Gao Committed by GitHub
Browse files

PubmedQA: remove redundant fewshot_experiments

parent de47e6e3
...@@ -40,12 +40,6 @@ class Pubmed_QA(HFTask): ...@@ -40,12 +40,6 @@ class Pubmed_QA(HFTask):
def doc_to_target(self, doc): def doc_to_target(self, doc):
return " {}".format(doc["final_decision"]) return " {}".format(doc["final_decision"])
def fewshot_examples(self, k):
# Since only test docs sample from test docs
if self._training_docs is None:
self._training_docs = list(self.test_docs())
return random.sample(self._training_docs, k)
def construct_requests(self, doc, ctx): def construct_requests(self, doc, ctx):
""" Uses RequestFactory to construct Requests and returns """ Uses RequestFactory to construct Requests and returns
an iterable of Requests which will be sent to the LM. an iterable of Requests which will be sent to the LM.
......
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