Generalization Bounds and Stopping Rules for Learning with Self-Selected Data