def METHOD_NAME(
    optimum_weight: float,
    minimum: float = -A_VERY_LARGE_NUMBER,
    maximum: float = A_VERY_LARGE_NUMBER,
) -> float:
    if minimum >= 0:
        return 1
    if maximum <= 0:
        return -1
    if np.isnan(optimum_weight):
        return 1
    return sign(optimum_weight)