Step 13 of 23
training process, supervised/unsupervised/reinforcement, overfitting, data quality
Machine Learning คือพยากรณ์อากาศ — เทรนยังไง Overfitting คืออะไร ข้อมูลไม่ดีจะเกิดอะไรขึ้น
How do meteorologists predict the weather? They study decades of historical data: temperature, pressure, humidity, wind patterns. They look for correlations: "When these conditions appeared in the past, rain followed 73% of the time within 24 hours."
Machine learning works the same way, but automated and at massive scale.
Diagram: Historical data trains a model, which then accepts new inputs (like house details) and produces predictions (like price estimates).
Loading diagram...
Diagram: Simplified machine learning pipeline from historical data through training to a model that makes predictions on new situations.
Loading diagram...
| Concept | Weather Analogy | What It Means |
|---|---|---|
| Training data | Decades of weather records | Historical examples the system learns from |
| Training | Meteorologist studying past patterns | The process of finding correlations in data |
| Model | The forecaster's mental model of weather | The learned patterns, packaged into a reusable form |
| Prediction | "70% chance of rain tomorrow" | Applying learned patterns to a new situation |
Training is like studying for an exam using past papers:
The result is a model: a mathematical representation of the patterns it discovered. This model can now be applied to new data to make predictions.
Supervised learning. The training data includes the correct answers. "Here are 10,000 emails, each labeled 'spam' or 'not spam.' Learn the difference." Like a teacher grading homework.
Unsupervised learning. No correct answers are provided. The system finds structure on its own. "Here are 10,000 customer profiles. Group them into similar clusters." Like sorting a pile of documents by topic without labels.
Reinforcement learning. The system learns by trial and error, receiving rewards for good outcomes and penalties for bad ones. Like training a dog with treats.
Overfitting. The model memorizes the training data instead of learning general patterns. Like a student who memorizes past exam answers but cannot solve new problems. The model performs perfectly on training data but fails in the real world.
Underfitting. The model is too simple to capture the patterns. Like predicting weather using only temperature, ignoring humidity, pressure, and wind. The model performs poorly everywhere.
Diagram: Comparison of underfitting (model too simple), good fit (captures patterns), and overfitting (memorizes noise and fails on new data).
Loading diagram...
Data quality. The model is only as good as its training data. If the data is incomplete, biased, or wrong, the model learns the wrong patterns. "Garbage in, garbage out."
When a team proposes using machine learning, evaluate: