def _try_convert_str_to_float(value, label):
    """
  Try to convert input value to float value.
  """
    try:
        return float(value)
    except Exception:
        msg = 'Invalid parameter: {} cannot cast string to float.'.format(label
            )
        raise ValueError(msg)
