Skip to content

Commit

Permalink
fixed formatting using ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
firojalam committed Dec 13, 2024
1 parent 21cfb58 commit b87cd7d
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions lm_eval/tasks/aradice/ArabicMMLU/EGY/metrics.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from sklearn.metrics import f1_score


def macro_f1_score(items):
unzipped_list = list(zip(*items))
golds = unzipped_list[0]
Expand Down
1 change: 1 addition & 0 deletions lm_eval/tasks/aradice/ArabicMMLU/LEV/metrics.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from sklearn.metrics import f1_score


def macro_f1_score(items):
unzipped_list = list(zip(*items))
golds = unzipped_list[0]
Expand Down
1 change: 1 addition & 0 deletions lm_eval/tasks/aradice/boolq/EGY/metrics.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from sklearn.metrics import f1_score


def macro_f1_score(items):
unzipped_list = list(zip(*items))
golds = unzipped_list[0]
Expand Down
1 change: 1 addition & 0 deletions lm_eval/tasks/aradice/boolq/ENG/metrics.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from sklearn.metrics import f1_score


def macro_f1_score(items):
unzipped_list = list(zip(*items))
golds = unzipped_list[0]
Expand Down
1 change: 1 addition & 0 deletions lm_eval/tasks/aradice/boolq/LEV/metrics.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from sklearn.metrics import f1_score


def macro_f1_score(items):
unzipped_list = list(zip(*items))
golds = unzipped_list[0]
Expand Down
1 change: 1 addition & 0 deletions lm_eval/tasks/aradice/boolq/MSA/metrics.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from sklearn.metrics import f1_score


def macro_f1_score(items):
unzipped_list = list(zip(*items))
golds = unzipped_list[0]
Expand Down
1 change: 1 addition & 0 deletions lm_eval/tasks/aradice/cultural-benchmark/metrics.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from sklearn.metrics import f1_score


def macro_f1_score(items):
unzipped_list = list(zip(*items))
golds = unzipped_list[0]
Expand Down
1 change: 1 addition & 0 deletions lm_eval/tasks/aradice/openbookqa/metrics.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from sklearn.metrics import f1_score


def macro_f1_score(items):
unzipped_list = list(zip(*items))
golds = unzipped_list[0]
Expand Down
1 change: 1 addition & 0 deletions lm_eval/tasks/aradice/piqa/metrics.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from sklearn.metrics import f1_score


def macro_f1_score(items):
unzipped_list = list(zip(*items))
golds = unzipped_list[0]
Expand Down
1 change: 1 addition & 0 deletions lm_eval/tasks/aradice/truthfulqa_mcq/metrics.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from sklearn.metrics import f1_score


def macro_f1_score(items):
unzipped_list = list(zip(*items))
golds = unzipped_list[0]
Expand Down
1 change: 1 addition & 0 deletions lm_eval/tasks/aradice/winogrande/metrics.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from sklearn.metrics import f1_score


def macro_f1_score(items):
unzipped_list = list(zip(*items))
golds = unzipped_list[0]
Expand Down

0 comments on commit b87cd7d

Please sign in to comment.