TreeBagger - Random forest

5 ビュー (過去 30 日間)
Magnus Barkved Olsen
Magnus Barkved Olsen 2017 年 7 月 10 日
回答済み: Ilya 2017 年 7 月 11 日
Hi,
I have used the TreeBagger function with "regression" as method to predict my dataset. I understands its possible to get the predictor importance estimates for the whole model (all trees) but is it possible to get it per prediction?
Any help is appreciated.
Many thanks!
Best,
Magnus Olsen

回答 (1 件)

Ilya
Ilya 2017 年 7 月 11 日
Take one observation and compute prediction for that observation. Then replace some predictor in that observation with NaN and recompute prediction. Use the magnitude of the difference between the two predictions as a measure of importance for that predictor. If you know the observed (true) value of prediction, you can look at how close the predicted values are to the observed one.
This is just an idea off top of my head. I have not seen anything in the literature for one observation.

Community Treasure Hunt

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

Start Hunting!

Translated by