Lines Matching refs:evaluator_keys
247 def is_topk_evaluator(evaluator_keys): argument
249 return (len(evaluator_keys) == 5 and
250 evaluator_keys[0] == 'top_1' and
251 evaluator_keys[1] == 'top_2' and
252 evaluator_keys[2] == 'top_3' and
253 evaluator_keys[3] == 'top_4' and
254 evaluator_keys[4] == 'top_5')
257 def is_melceplogf0_evaluator(evaluator_keys): argument
259 return (len(evaluator_keys) == 2 and
260 evaluator_keys[0] == 'max_mel_cep_distortion' and
261 evaluator_keys[1] == 'max_log_f0_error')
264 def is_phone_error_rate_evaluator(evaluator_keys): argument
266 return (len(evaluator_keys) == 1 and
267 evaluator_keys[0] == 'max_phone_error_rate')
272 if is_topk_evaluator(result.evaluator_keys):
274 elif is_melceplogf0_evaluator(result.evaluator_keys):
276 elif is_phone_error_rate_evaluator(result.evaluator_keys):
293 if is_topk_evaluator(result.evaluator_keys):
311 elif is_melceplogf0_evaluator(result.evaluator_keys):
335 elif is_phone_error_rate_evaluator(result.evaluator_keys):