musicaiz.eval.euclidean_distance

musicaiz.eval.euclidean_distance(measures1: List[Dict[str, Union[int, numpy.array]]], measures2: Optional[List[Dict[str, Union[int, numpy.array]]]] = None) Dict[str, Dict[str, Union[int, numpy.array]]][source]

Computes the pair-wise cross-validation with Euclidean distance of the features extracted from a dataset which are stored in a dict. Each item in the list is a dict of features corresponding to the features extracted from a list of notes.

Parameters
measures: List[Dict[str, Union[int, np.array]]]

A list of the features (stored in dicts) that have been extracted with the get_eval_measures method from different notes’ lists.

Returns
all_dist: Dict[str, Dict[str, Union[int, np.array]]]

The euclidean distance of the cross-validated measures.