def ScorePsnrBitrate(target_bitrate, result):
  if not result:
    return None
  score = result['psnr']
  # We penalize bitrates that exceed the target bitrate.
  if result['bitrate'] > int(target_bitrate):
    score -= (result['bitrate'] - int(target_bitrate)) * 0.1
  return score
Args
dataset/ETHPy150Open google/compare-codecs/lib/score_tools.py/ScorePsnrBitrate--crossover with--dataset/ETHPy150Open OpenMDAO/OpenMDAO/openmdao/core/group.py/Group._get_relname_map