musicaiz.eval.compute_oa_kld¶
- musicaiz.eval.compute_oa_kld(measures_dist1: Dict[str, Dict[str, float]], measures_dist2: Dict[str, Dict[str, float]], label1: str = '1', label2: str = '2') Dict[str, Dict[str, Dict[str, float]]] [source]¶
Computes the KLD and OA of all the features in the input dicts and build a dict with the reults.
- Parameters
- measures_dist1: Dict[str, Dict[str, float]]
the dict with the cross-validated distances of each sample in the database (intra or inter) for each feature.
- measures_dist2: Dict[str, Dict[str, float]]
the dict with the cross-validated distances of each sample in the database (intra or inter) for each feature.
- Returns
- measures_dict: Dict[str, Dict[str, Dict[str, float]]]
the output results stored in a dictionary in which the keys are label1 and label2 and the values are dicts which keys are the measures computed and the values are the KLD and OA.