nnmnkwii.metrics.melcd¶
-
nnmnkwii.metrics.
melcd
(X, Y, lengths=None)[source]¶ Mel-cepstrum distortion (MCD).
The function computes MCD for time-aligned mel-cepstrum sequences.
Parameters: - X (ndarray) – Input mel-cepstrum, shape can be either of
(
D
,), (T x D
) or (B x T x D
). Both Numpy and torch arrays are supported. - Y (ndarray) – Target mel-cepstrum, shape can be either of
(
D
,), (T x D
) or (B x T x D
). Both Numpy and torch arrays are supported. - lengths (list) – Lengths of padded inputs. This should only be specified if you give mini-batch inputs.
Returns: Mean mel-cepstrum distortion in dB.
Return type: Note
The function doesn’t check if inputs are actually mel-cepstrum.
- X (ndarray) – Input mel-cepstrum, shape can be either of
(