We used RDKit to explicitly construct the MACCS FPs of the pesticide molecules, {φ MACCS (G 1 ), ..., φ MACCS (G N )}. Then, we computed the dot product φ MACCS (G i ) • φ MACCS (G j ) between each pair of MACCS FPs and stored them in the Gram matrix K MACCS .