docs: def from_ic50(ic50, max_ic50=50000.0):
      """
      Convert ic50s to regression targets in the range [0.0, 1.0].
      
      Parameters
      ----------
      ic50 : numpy.array of float
  
      Returns
      -------
      numpy.array of float
  
      """
      x = 1.0 - (numpy.log(ic50) / numpy.log(max_ic50))
      return numpy.minimum(
          1.0,
          numpy.maximum(0.0, x))