On 20 September 2022, the Spanish Data Protection Agency (AEPD) published a set of Guidelines on machine learning and data use. The Guidelines explains, among other points, how to ensure that the use of data sets in machine learning is in compliance with the GDPR.
Original source