Overfitting (मडेल प्रशिक्षण डेटा मेमोराइज गर्छ र नयाँ डेटामा असफल हुन्छ) र underfitting (मडेल पैटर्न क्याप्चर गर्न धेरै सरल छ) ML मा दुई मौलिक समस्या हुन्। तिनलाई सन्तुलन गर्दै — राम्रो generalization हासिल गर्दै — प्रभावकारी मडेल निर्माणमा केन्द्रीय छ।
Overfitting बनाम underfitting
OVERFITTING → the model learns the training data TOO well (including noise) →
→ performs great on training data but POORLY on new/unseen data (doesn't generalize)
→ too complex; memorizes rather than learns general patterns
→ like memorizing answers vs understanding the concept
UNDERFITTING → the model is TOO SIMPLE to capture the underlying patterns →
→ performs poorly on BOTH training and new data
→ not enough complexity/capacity to learn the patterns
→ the goal is GENERALIZATION: learn real patterns → perform well on NEW data
