from dataclasses import dataclass from enum import Enum @dataclass class Task: benchmark: str metric: str col_name: str # Select your tasks here # --------------------------------------------------- class Tasks(Enum): # task_key in the json file, metric_key in the json file, name to display in the leaderboard task0 = Task("anli_r1", "acc", "ANLI") task1 = Task("logiqa", "acc_norm", "LogiQA") NUM_FEWSHOT = 0 # Change with your few shot # --------------------------------------------------- class nc_tasks(Enum): task0 = Task("rel-amazon/user-churn", "auroc", "user-churn") task1 = Task("rel-amazon/item-churn", "auroc", "item-churn") task3 = Task("rel-avito/user-visits", "auroc", "user-visits") task2 = Task("rel-avito/user-clicks", "auroc", "user-clicks") task7 = Task("rel-f1/driver-dnf", "auroc", "driver-dnf") task8 = Task("rel-f1/driver-top3", "auroc", "driver-top3") task4 = Task("rel-hm/user-churn", "auroc", "hm-user-churn") task6 = Task("rel-stack/user-engagement", "auroc", "user-engagement") task5 = Task("rel-stack/user-badge", "auroc", "user-badge") task9 = Task("rel-trial/study-outcome", "auroc", "study-outcome") task10 = Task("rel-event/user-repeat", "auroc", "user-repeat") task11 = Task("rel-event/user-ignore", "auroc", "user-ignore") class nr_tasks(Enum): task0 = Task("rel-amazon/user-ltv", "mae", "user-ltv") task1 = Task("rel-amazon/item-ltv", "mae", "item-ltv") task3 = Task("rel-avito/ad-ctr", "mae", "ad-ctr") task4 = Task("rel-f1/driver-position", "mae", "driver-position") task5 = Task("rel-hm/item-sales", "mae", "item-sales") task6 = Task("rel-stack/post-votes", "mae", "post-votes") task7 = Task("rel-trial/study-adverse", "mae", "study-adverse") task8 = Task("rel-trial/site-success", "mae", "site-success") task9 = Task("rel-event/user-attendance", "mae", "user-attendance") class lp_tasks(Enum): task0 = Task("rel-amazon/user-item-purchase", "map", "user-item-purchase") task1 = Task("rel-amazon/user-item-rate", "map", "user-item-rate") task2 = Task("rel-amazon/user-item-review", "map", "user-item-review") task3 = Task("rel-avito/user-ad-visit", "map", "user-ad-visit") task4 = Task("rel-hm/user-item-purchase", "map", "hm-user-item-purchase") task5 = Task("rel-stack/user-post-comment", "map", "user-post-comment") task6 = Task("rel-stack/post-post-related", "map", "post-post-related") task7 = Task("rel-trial/condition-sponsor-run", "map", "condition-sponsor-run") task8 = Task("rel-trial/site-sponsor-run", "map", "site-sponsor-run") # Your leaderboard name TITLE = """