Is the the cofusion Matrix update expect predicted values between 0 and 1:

  

      github.com
  

  
    tensorflow/tensorflow/blob/master/tensorflow/python/keras/utils/metrics_utils.py#L620-L629 1



      
      
          with ops.control_dependencies([
              check_ops.assert_greater_equal(
                  y_pred,
                  math_ops.cast(0.0, dtype=y_pred.dtype),
                  message='predictions must be >= 0'),
              check_ops.assert_less_equal(
                  y_pred,
                  math_ops.cast(1.0, dtype=y_pred.dtype),
                  message='predictions must be <= 1')
          ]):