chapter 9 first half

ipnb of first half of chapter 9 of astroML book, covering
classification w Bayes method, k neighbors, and logistic regression