Clear Filters
Clear Filters

Matlab TreeBagger OOBPrediction flag not recognized

2 views (last 30 days)
Sepp on 16 Jul 2016
Answered: lior on 19 Jul 2016
I'm using the TreeBagger function of Matlab R2015a with the name-value pairs 'OOBPrediction', 'on' and 'OOBPredictorImportance', 'on'. Now I'm getting the following error message:
Invalid parameter name: OOBPrediction.
In the official Matlab documentation this name-value pair is listed.
What is wrong?

Answers (1)

lior on 19 Jul 2016
With the version I am using, you need to use 'OOBPred' instead of 'OOBPrediction'.

Community Treasure Hunt

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

Start Hunting!