fastbook icon indicating copy to clipboard operation
fastbook copied to clipboard

max_samples in RandomForestRegressor (Ch. 9) is more than expected by sklearn

Open mdmittriy opened this issue 4 years ago • 0 comments
trafficstars

When running the Chapter 9 notebook this ValueError is rised:

ValueError: max_samples must 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.

mdmittriy avatar Oct 28 '21 19:10 mdmittriy