Contributed chapters from "A Course in Machine Learning" (http://ciml.info)