nnmnkwii.metrics.vuv_error

nnmnkwii.metrics.vuv_error(src_vuv, tgt_vuv, lengths=None)[source]

Voice/unvoiced error rate computation

Parameters
  • src_vuv (ndarray) – Input voiced/unvoiced flag array shape can be either of (T, ), (B x T) or (B x T x 1).

  • tgt_vuv (ndarray) – Target voiced/unvoiced flag array shape can be either of (T, ), (B x T) or (B x T x 1).

  • lengths (list) – Lengths of padded inputs. This should only be specified if you give mini-batch inputs.

Returns

voiced/unvoiced error rate (0 ~ 1).

Return type

float