drugforge.alchemy.predict.negative_log

drugforge.alchemy.predict.negative_log(value: float, inverse: bool = False) float[source]

Convenience method to take the negative log of value, or to invert it. Handy for round tripping e.g. pIC50 and IC50.

Args:

value: The value to be transformed inverse: If inverse take the negative natural log of the value

Returns:

transformed_value: The transformed value.