Each task comprises known active and known inactive small molecules (x) and the corresponding bioactivity labels for each molecule (y). Given for the first dataset and for the second dataset , this part aims to quantify the similarity between and from a chemical space perspective. The distance between datasets is the distance between two sets of labeled molecules. Quantifying EXT_CHEM involves the following steps: