where S = {S 1 , S 2 }. Function r represents the change in the chemical structure from S to P . Note that r is a set function that is invariant to the exchange of S 1 and S 2 . As described later, the single-step reaction prediction model was modeled using Molecular Transformer.