Similar Items: The two clocks and the innovation window: When and how generative models learn rules