教師あり学習は、ラベル付きの例(入力と正しい出力の組)でモデルを訓練し、新しい入力に対する出力を予測できるように学習させます。最も一般的なMLの種類で、分類と回帰に使われます。これを理解することはML知識を深めます。
教師あり学習の仕組み
TRAIN on LABELED data (input → known correct output):
1. collect a DATASET of examples with labels (e.g. emails labeled spam/not-spam)
2. split into TRAINING and TEST sets
3. the model learns to map inputs → outputs by minimizing prediction error on training data
4. EVALUATE on the test set (unseen data) → measure how well it generalizes
5. use the trained model to PREDICT outputs for new inputs (inference)
→ learn from examples with answers → predict answers for new cases
