TODO change user action to train instances.