Skip to content

Commit

Permalink
fix: remove register_task
Browse files Browse the repository at this point in the history
  • Loading branch information
celiolarcher committed Jul 5, 2024
1 parent c24baaa commit b7d2e80
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lm_eval/tasks/portuguese_benchmark/assin2/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def test_docs(self):
return self.dataset["test"].map(self._process_doc)


@register_task("assin2rte")

class Assin2RTE(Assin2Base):
VERSION = "balanced_log_likelihood"
CLASS_NAMES = ["Não", "Sim"]
Expand Down Expand Up @@ -257,7 +257,7 @@ def higher_is_better(self):
return {"macro_f1": True, "accuracy": True}


@register_task("assin2sts")

class Assin2STS(Assin2Base):
VERSION = "balanced_log_likelihood_remove_low_confidence"
# class names used only for training
Expand Down
2 changes: 1 addition & 1 deletion lm_eval/tasks/portuguese_benchmark/faquad/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def _squad_agg(key, items):
return _squad_metric(predictions=predictions, references=references).get(key, 0)


@register_task("faquad")

class FaQuAD(ConfigurableTask):
VERSION = 1
DATASET_PATH = "eraldoluis/faquad"
Expand Down

0 comments on commit b7d2e80

Please sign in to comment.