The dataset was divided into training and testing data using the function train_test_split and the test_size parameter set as 0.2. This specifies that 20% of the original set will comprise the test set. Therefore, 42 molecules made up the training set and 11 the test set. The selection of the molecules in the training and test sets was made randomly but controlled by a predetermined seed.