Learning from Examples
In traditional programming, you write rules and give it data to get answers. In machine learning, you give it data and answers (labels) to get the rules.
Traditional Programming vs. Machine Learning
Traditional Programming
- Input: Data + Rules
- Process: Logic Execution
- Output: Answers
Machine Learning
- Input: Data + Answers
- Process: Pattern Recognition
- Output: Rules (Model)
Teaching a Child
Imagine teaching a child to recognize a cat. You don't explain fur texture or ear shape mathematically; you show them many pictures and say 'cat' or 'not cat'. The child's brain builds the rules based on those examples.