2021-10-25 13:37:22 +02:00
|
|
|
import argparse
|
|
|
|
import quapy as qp
|
|
|
|
from data import ResultSubmission, evaluate_submission
|
|
|
|
import constants
|
|
|
|
import os
|
|
|
|
|
|
|
|
"""
|
|
|
|
LeQua2022 Official format-checker script
|
|
|
|
"""
|
|
|
|
|
|
|
|
def main(args):
|
|
|
|
try:
|
|
|
|
ResultSubmission.check_file_format(args.prevalence_file)
|
|
|
|
except Exception as e:
|
|
|
|
print(e)
|
|
|
|
print('Format check: not passed')
|
|
|
|
else:
|
|
|
|
print('Format check: passed')
|
|
|
|
|
|
|
|
|
|
|
|
if __name__=='__main__':
|
|
|
|
parser = argparse.ArgumentParser(description='LeQua2022 official format-checker script')
|
2021-11-04 19:15:16 +01:00
|
|
|
parser.add_argument('prevalence_file', metavar='PREVALENCEFILE-PATH', type=str,
|
2021-10-25 13:37:22 +02:00
|
|
|
help='Path of the file containing prevalence values to check')
|
|
|
|
args = parser.parse_args()
|
|
|
|
|
|
|
|
main(args)
|