Some minor updates for Edition 1 only:
All change have been included from edition 2 onwards. Many thanks to Oni Sanyal, Meng Gao, Thi Mai Luong and Lu Li for their careful reading and making great suggestions to improve the book and related works. The changes are:
- Chapter 6.2: change "ref = data.sample(int(0.8*len(data)), random_state=12345).index" to "ref = sample.sample(int(0.8*len(sample)), random_state=12345).index"
- Chapter 6.2.3: change "data.loc[:,'FICO_fit'] = pd.DataFrame(fico_ols.predict(data))" to "data['FICO_fit'] = pd.DataFrame(fico_ols.predict(data))"
- Chapter 6.5: delete data = pd.read_csv('C:/TMP/mortgage_ML.csv')