mljs / random-forest

Random forest for classification and regression.
https://mljs.github.io/random-forest/
MIT License
61 stars 21 forks source link

change defaults #19

Closed micha-lmxt closed 4 years ago

micha-lmxt commented 4 years ago

Using bootstrap sampling to generate a bunch of different trees is the essence of random forests. Having the option (useSampleBagging) to turn it off is uncommon, but defaulting to false is super odd.

I also increased the number of trees. On R the default is 500, on python i think it is 100. I don't know, why the default here was 10 (perfomance?), but that is usually not enough.