mlchem.chem.calculator.tools.logit_to_proba¶
- logit_to_proba(logit: float) float¶
Convert a logit value to probability.
This applies the logistic (sigmoid) function.
- Parameters:
logit (float) – Logit value to be converted.
- Returns:
Corresponding probability.
- Return type:
float
Examples
>>> logit_to_proba(0) 0.5