Commit e700f3d8 authored by baberabb's avatar baberabb
Browse files

test

parent f744bfad
...@@ -3,6 +3,7 @@ group: ...@@ -3,6 +3,7 @@ group:
task: arc_easy task: arc_easy
dataset_path: ai2_arc dataset_path: ai2_arc
dataset_name: ARC-Easy dataset_name: ARC-Easy
# test
output_type: multiple_choice output_type: multiple_choice
training_split: train training_split: train
validation_split: validation validation_split: validation
......
...@@ -44,6 +44,7 @@ def maketable(df): ...@@ -44,6 +44,7 @@ def maketable(df):
else: else:
task_classes = new_tasks() task_classes = new_tasks()
_tasks = [(x, TASK_REGISTRY.get(x)) for x in task_classes] _tasks = [(x, TASK_REGISTRY.get(x)) for x in task_classes]
count = 0
for tname, Task in _tasks: for tname, Task in _tasks:
task = Task() task = Task()
v = [ v = [
...@@ -66,6 +67,9 @@ def maketable(df): ...@@ -66,6 +67,9 @@ def maketable(df):
] ]
logger.info(v) logger.info(v)
values.append(v) values.append(v)
count += 1
if count == 10:
break
if not df: if not df:
df = pd.DataFrame(values, columns=headers) df = pd.DataFrame(values, columns=headers)
table = df.to_markdown(index=False) table = df.to_markdown(index=False)
...@@ -85,8 +89,8 @@ def maketable(df): ...@@ -85,8 +89,8 @@ def maketable(df):
if __name__ == "__main__": if __name__ == "__main__":
csv_file = Path(f"{Path(__file__).parent.parent.resolve()}/docs/task_guide.csv") csv_file = Path(f"{Path(__file__).parent.parent.resolve()}/docs/task_table.csv")
md_file = Path(f"{Path(__file__).parent.parent.resolve()}/docs/task_guide.md") md_file = Path(f"{Path(__file__).parent.parent.resolve()}/docs/task_table.md")
try: try:
df = pd.read_csv(csv_file) df = pd.read_csv(csv_file)
......
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