trainsample