Generic example code and generic function for random forests

example code and generic function for random forests (checks out of bag errors and leaf size)
749 Downloads
Updated 12 Jul 2017

View License

This submission has simple examples and a generic function for random forests (checks out of bag errors, number of leaf nodes and estimates feature importance).
The example loads sample data and performs classification using random forests. This has code adapted from MATLAB documentation at http://au.mathworks.com/help/stats/treebagger.html
and from https://uk.mathworks.com/help/stats/ensemble-methods.html#bsx62vu
Downloads a breast cancer data from the UCI repository to perform regression
http://archive.ics.uci.edu/ml/machine-learning-databases/breast-cancer-wisconsin/breast-cancer-wisconsin.names

Cite As

Dr. Soumya Banerjee (2024). Generic example code and generic function for random forests (https://www.mathworks.com/matlabcentral/fileexchange/63698-generic-example-code-and-generic-function-for-random-forests), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2016b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Statistics and Machine Learning Toolbox in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

POWERFUL_RANDOMFOREST_UPLOAD/

POWERFUL_RANDOMFOREST_UPLOAD/html/

Version Published Release Notes
1.1.0.0

updated link to UCI repository

1.0.0.0