I have a structure like data = {{A,1,2,3,4},{A,3,2,6,9},{B,102,201,544,123},{B,300,422,122},{A,44,1,89,7}, etc}, where the classes A and B contain a number of fields. I want to use this in the Classify function but this needs a structure of the form: {{1,2,3,4}->"A",{3,2,6,9}->"A",{102,201,544,123}->"B", etc}. I thought Association would be the way to go but can't figure out how.