fastbook
fastbook copied to clipboard
max_samples in RandomForestRegressor (Ch. 9) is more than expected by sklearn
trafficstars
When running the Chapter 9 notebook this ValueError is rised:
ValueError:
max_samplesmust be in range 1 to 20081 but got value 200000
I suggest changing the max_samples parameter from 200_000 to 20_081 in clean and 'dirty' Ch 9 notebooks so that sklearn doesn't complain. Also editing the book/markdown to reflect this change is a good idea.