An evolutionary approach to training relaxation labeling processes