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("acc_overall", "acc", "Acc_All") task1 = Task("acc_sel", "acc_sel", "Acc_Sel") task2 = Task("acc_el", "acc_el", "Acc_El") task3 = Task("acc_perturb", "perturb_score", "Acc_Perturb") task4 = Task("score_consistency", "consist_score", "Consistency_Score") class AssetTasks(Enum): # task_key in the json file, metric_key in the json file, name to display in the leaderboard task0 = Task("acc_electric_motor", "acc_electric_motor", "acc_electric_motor") task1 = Task("acc_steam_turbine", "acc_steam_turbine", "acc_steam_turbine") task2 = Task("acc_aero_gas_turbine", "acc_aero_gas_turbine", "acc_aero_gas_turbine") task3 = Task("acc_industrial_gas_turbine", "acc_industrial_gas_turbine", "acc_industrial_gas_turbine") task4 = Task("acc_pump", "acc_pump", "acc_pump") task5 = Task("acc_compressor", "acc_compressor", "acc_compressor") task6 = Task("acc_reciprocating_internal_combustion_engine", "acc_reciprocating_internal_combustion_engine", "acc_reciprocating_internal_combustion_engine") task7 = Task("acc_electric_generator", "acc_electric_generator", "acc_electric_generator") task8 = Task("acc_fan", "acc_fan", "acc_fan") task9 = Task("acc_power_transformer", "acc_power_transformer", "acc_power_transformer") class UncertaintyTasks(Enum): # task_key in the json file, metric_key in the json file, name to display in the leaderboard task0 = Task("fmsr_ss", "fmsr_ss", "fmsr_ss") task1 = Task("fmsr_coverage_rate", "fmsr_coverage_rate", "fmsr_coverage_rate") task2 = Task("fmsr_acc", "fmsr_acc", "fmsr_acc") task3 = Task("fmsr_uacc", "fmsr_uacc", "fmsr_uacc") # { # "acc_overall": { # "acc": 0.38732658417697785 # }, # "acc_sel": { # "acc_sel": 0.40638297872340423 # }, # "acc_el": { # "acc_el": 0.4954128440366973 # }, # "acc_perturb": { # "perturb_score": 0.2819647544056993 # }, # "score_consistency": { # "consist_score": 0.16422947131608548 # }, # "uncertainty": { # "uncertainty_score": 0 # }, # "acc_electric_motor": { # "acc_electric_motor": 0.41025641025641024 # }, # "acc_steam_turbine": { # "acc_steam_turbine": 0.30409356725146197 # }, # "acc_aero_gas_turbine": { # "acc_aero_gas_turbine": 0.3541666666666667 # }, # "acc_industrial_gas_turbine": { # "acc_industrial_gas_turbine": 0.45 # }, # "acc_pump": { # "acc_pump": 0.39473684210526316 # }, # "acc_compressor": { # "acc_compressor": 0.35 # }, # "acc_reciprocating_internal_combustion_engine": { # "acc_reciprocating_internal_combustion_engine": 0.47619047619047616 # }, # "acc_electric_generator": { # "acc_electric_generator": 0.42735042735042733 # }, # "acc_fan": { # "acc_fan": 0.445 # }, # "acc_power_transformer": { # "acc_power_transformer": 0.3161764705882353 # } # } NUM_FEWSHOT = 0 # Change with your few shot # --------------------------------------------------- # Your leaderboard name TITLE = """