it can generate the traning set.