estimator_results_to_dict

tsml_eval.utils.results_loading.estimator_results_to_dict(estimator_results, measure)[source]

Convert a list of EstimatorResults objects to a dictionary of metrics.

Follows the output format of aeon dict results loaders.

Parameters:
estimator_resultslist of EstimatorResults

The results to convert.

measurestr

A valid metric attribute from the relevant EstimatorResults object. Dependent on the task, i.e. for classification, “accuracy”, “auroc”, “balacc”, and regression, “mse”, “mae”, “r2”.

Returns:
results: dict

Dictionary with estimator name keys containing another dictionary. Sub-dictionary consists of dataset name keys and contains of scores for each dataset.