Unit summary

  • Data is split into training, validation and test sets; the test set is used once.
  • Overfitting means low training error but high test error; k-fold cross-validation gives a stable estimate.
  • The confusion matrix gives TP, FN, FP and TN, from which accuracy, precision, recall and F1 follow.
  • The ROC curve plots TPR against FPR and the AUC summarises it as a single number.

Glossary

Term Meaning
Generalisation Good performance on unseen data.
Harmonic mean The mean of reciprocals; used by F1 so that low values pull the score down.
Hyperparameter A setting chosen by the user before training, such as k in KNN.
Precision The fraction of predicted positives that are truly positive.
Recall The fraction of actual positives that are found; also the true positive rate.
Stratified split A split that preserves the class proportions in each part.
Threshold The score above which an instance is predicted positive.

Question bank

Short Answer Questions (2 marks each)

Medium Answer Questions (5 marks each)

Long Answer Questions (15 marks each)

Sources

  • Official BCA syllabus Introduction to Machine Learning, course code 26BCA404DSE21, Unit II