Modify the way to generate the trained data