I am new to programming. I need to build a decision tree to classify setosa (class =1 ) against combined virginca and versicolor (class = 2) in matlab
1 次查看(过去 30 天)
显示 更早的评论
I have tried for days to come up with code. I just can't wrap my head around how I should build a tree and trace back to various points, including all the way back to the root when at the last node. I have attached what I was able to come up with. I don't know if it's any good, but I tried anyway. If someone knows how to code this, could you explain? If it's not too much trouble, could you upload the code and put the explanation in comments? I have attached what I was able to come up with.
0 个评论
回答(1 个)
Luuk van Oosten
2016-9-23
Dear Kunal,
I think you will find all you need over here. It is explained quite good what is happening. Otherwise I would refer you to the documentation about treebagger.
Have fun!
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Classification 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!