Create an 'other' category for classregtree?

1 次查看(过去 30 天)
I'm using classregtree to create a decision tree for analyzing low resolution images and determining their taxanomic classification. I have created three categories of interest. When predicting data, if the data is not one of the three categories, I would like it to go in an 'other' category and/or not be fit into one of my existing categories. Is there a way to do this other than creating another category that consists of random and greatly varying taxa?

回答(1 个)

Ilya
Ilya 2013-4-3
It is not entirely clear from your post if you are talking about a categorical predictor (one of the variables in X) or the categorical response (Y, or class labels). I will assume the latter.
classregtree can only predict into one of the classes included in the training data. How would you determine if an observation is not one of the three categories? If you can do it, classregtree can do it too, as long as you have enough data for this 4th category and use these data to grow the tree.

类别

Help CenterFile Exchange 中查找有关 Image Data Workflows 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by