In this lesson you see how a machine "learns" from examples instead of being given hand-written rules.
Machine Learning starts from a dataset arranged as a table: each row is one example, most columns are features, and the final column is the label — the answer we want the machine to predict. Example: a table of houses sold in Phnom Penh with size (square metres), location and number of rooms as features, and the sale price as the label.
During training the computer looks at many examples and adjusts numbers inside the model until its guesses get closer to the real answers. Later, when a new house the model has never seen arrives, it emits a prediction — an estimated price.
Two things are worth remembering. First, a model only learns what is inside the table: if your house data only covers central Phnom Penh districts, the model will guess badly for other provinces. Second, the label must have a clear meaning: "the actual sale price" is far stronger than "the price the owner hoped for".
What to remember:
- Table = examples (rows) + features (columns) + a label column
- Training = adjusting numbers inside the model until it predicts better
- Good on old data does not guarantee good on new data — that is Module 4's topic