Chapter 5 Quiz

Chapter 5, Distance-Based Learning, K-Nearest Neighbors

Learning objectives

  • Test your understanding of Chapter 5: k nearest neighbours on Ogbon-1's crossplot (Section 5.1) and choosing k on the nine wells with one well held out (Section 5.2)

This quiz covers Chapter 5: kNN on Ogbon-1's neutron-density crossplot (Section 5.1) and choosing k on the nine wells of the book's own learning set, one well held out at a time (Section 5.2). Every number in it is the book's kernel's, on the book's own synthetic data.

Key Ideas

  • kNN: a sample is called the class most common among its kk nearest training samples, a tied vote going to the class of the nearest among the tied.
  • Distance: on standardized logs, z=(xβˆ’xΛ‰)/sz = (x - \bar x)/s, so that v/v and g/cc can be added; Euclidean βˆ‘j(zijβˆ’zlj)2\sqrt{\textstyle\sum_j (z_{ij} - z_{lj})^2} or Manhattan βˆ‘j∣zijβˆ’zlj∣\textstyle\sum_j |z_{ij} - z_{lj}|.
  • Left out: a sample voting for itself is always right at k = 1; asked with itself left out, it is asked as a new sample would be.
  • Leave one well out: train on eight wells, call the ninth, nine times, the scaler fitted on the training wells only. That is the score of a model of well logs.
  • The logs decide: on the porosity logs no k tells the water-leg well's wet sand from oil sand; resistivity does.

This page is prerendered for SEO and accessibility. The interactive widgets above hydrate on JavaScript load.