简体   繁体   中英

MATLAB Treebagger and Random Forests

Does the Treebagger class in MATLAB apply Breiman's Random Forest algorithm?

If I simply use Treebagger , is it the same as using Random Forests, or do I need to modify some parameters?

Thanks.

TreeBagger implements a bagged decision tree algorithm, rather than Random Forests specifically.

You can get TreeBagger to behave basically the same as Random Forests as long as the NVarsToSample parameter is set appropriately. See the documentation page for TreeBagger , under the NVarsToSample parameter, for details.

Edit: Note that in release R2015b, the NVarsToSample parameter has been renamed to NumPredictorsToSample .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM