def parse_threshold(value):
    """Extract threshold value from the param for validation.
    :param value: Input threshold value.
    :return: A Float between 0 and 1, otherwise ``None``.
    """
    try:
        threshold = float(value)
        if 0 <= threshold <= 1:
            return threshold
    except Exception:
        return None

    return None