Fix compilation

InfCriteria: delete labels
Trainer: add constructor