A target function is the unknown ground-truth mapping f: X→Y from possible inputs to their true outputs. In drug discovery, X can be the chemical space of druglike compounds, while Y records whether each compound blocks hERG. section 3.3.1
A machine-learning workflow approximates the target function:
- Represent compounds with molecular descriptors, structural fingerprints, or other numerical features. section 3.3.1
- Learn model weights from experimentally labeled pairs such as (compound, hERG activity). section 3.3.1
- Use loss, cost, and learning routines to reduce prediction error, then freeze the weights for inference. section 3.3.1
Figure 3.7 We can formally define our problem as a mathematical function, f∶ X→Y, that maps the set of all possible inputs, X (the full chemical space of druglike compounds), to the set of all possible outputs, Y (“yes” or “no” to hERG blocking).

Visualizes the mapping from the full chemical space to hERG-blocking outcomes. section 3.3.1


