pdmlabs.evaluation.vus.affiliation.metrics#
Functions
|
Compute the affiliation metrics including the precision/recall in [0,1], along with the individual precision/recall distances and probabilities |
Produce the affiliation precision/recall for all files contained in the data repository :return: a dictionary indexed by data names, each containing a dictionary indexed by algorithm names, each containing the results of the affiliation metrics (precision, recall, individual probabilities and distances) |
|
|
Verify the validity of the input events :param events: list of events, each represented by a couple (start, stop) :return: None. |
- pdmlabs.evaluation.vus.affiliation.metrics.pr_from_events(events_pred, events_gt, Trange)#
Compute the affiliation metrics including the precision/recall in [0,1], along with the individual precision/recall distances and probabilities
- Parameters:
events_pred β list of predicted events, each represented by a couple
indicating the start and the stop of the event :param events_gt: list of ground truth events, each represented by a couple indicating the start and the stop of the event :param Trange: range of the series where events_pred and events_gt are included, represented as a couple (start, stop) :return: dictionary with precision, recall, and the individual metrics
- pdmlabs.evaluation.vus.affiliation.metrics.produce_all_results()#
Produce the affiliation precision/recall for all files contained in the data repository :return: a dictionary indexed by data names, each containing a dictionary indexed by algorithm names, each containing the results of the affiliation metrics (precision, recall, individual probabilities and distances)
- pdmlabs.evaluation.vus.affiliation.metrics.test_events(events)#
Verify the validity of the input events :param events: list of events, each represented by a couple (start, stop) :return: None. Raise an error for incorrect formed or non ordered events