Whenever you're ready, walk me through how you'd approach this.
Design a simple C++ class based on the problem requirements and explain your design choices.
Keep the class focused on a traditional supervised learning workflow, such as fit, predict, and score. Your answer should clarify what state the class stores, how it handles input validation, and how you would keep the interface easy to extend without overengineering.