def from_ic50(ic50, max_ic50=<NUM_LIT>):
x = <NUM_LIT:1.0> - (numpy.log(ic50) / numpy.log(max_ic50))<EOL>return numpy.minimum(<EOL><NUM_LIT:1.0>,<EOL>numpy.maximum(<NUM_LIT:0.0>, x))<EOL>
Convert ic50s to regression targets in the range [0.0, 1.0].

Parameters
----------
ic50 : numpy.array of float

Returns
-------
numpy.array of float