extract_publication_csv_from_evaluation¶
- tsml_eval.utils.publications.extract_publication_csv_from_evaluation(stats, eval_path, write_path)[source]¶
Extract the CSV files from the evaluation directory to a new directory.
- Parameters:
- statsstr or list of str
The statistics to extract. The name of a statistic or list of names.
- eval_pathstr or list of str
The path to the evaluation directory generated from the evaluation package. If a list, each item is the path to an evaluation directory.
- write_pathstr or list of str
The path to the directory where the CSV files will be written. If a list, each item is the path to a directory where the CSV files will be written. eval_path and write_path must be the same length.
Examples
>>> from tsml_eval.testing.testing_utils import ( ... _TEST_EVAL_PATH, _TEST_OUTPUT_PATH ... ) >>> from tsml_eval.utils.publications import ( ... extract_publication_csv_from_evaluation ... ) >>> extract_publication_csv_from_evaluation( ... ["Accuracy", "BalAcc"], ... f"{_TEST_EVAL_PATH}/classification/", ... f"{_TEST_OUTPUT_PATH}/result_files/", ... )