Then, the aggregated reaction encoding from the encoder was concatenated with the route properties, including cost, price, and complexity, along with the molecule fingerprints, before being passed to the scorer network to compute the TED score. The fingerprint used as input in both networks is designed to generate target-specific reaction encodings and target-specific route scoring. This setup also allowed the two models to function independently, accommodating various practical demands or constraints. The complete model can be expressed as: