def clamp_value(value, max_value=1.0, min_value=0.0):
    return max(min(value, max_value), min_value)
tests if classifier results match target
dataset/ETHPy150Open mikrosimage/ColorPipe-tools/utils/colors_helper.py/clamp_value--crossover with--dataset/ETHPy150Open scikit-learn/scikit-learn/sklearn/linear_model/tests/test_sag.py/test_classifier_results