Change Decision Tree Continuity in MATLAB

I created a regression tree using fitrtree. I want to take parameters like CutPoint and reduce the accuracy, something like this:

tree.CutPoint=round(tree.CutPoint,5);

but I can’t do this because CutPoint is installed as read-only, I want to either modify it or create a tree that essentially coincides with this, but with these changes. Unfortunately, the documentation only shows constructors through the fitrtree function. Is it possible to do this? And if so, how?

Thanks in advance

+4
source share
1 answer

This is only a partially suggestive decision. I hope someone else comes up with a better solution.

Broken solutions:

, , , () , , , round(tree.CutPoint,5), CutPoint, -

NewTree = RegressionTree('X',tree.X,'Y',tree.Y,...,'CutPoint',round(tree.CutPoint,5),...)

NewTree, tree, CutPoint, .

, ( ) ,

. FITRTREE RegressionTree, .

, . , , , , ( , ).

:

, Mathworks , , . , , . :

  • , , , . edit RegressionTree , , private, public.

  • Matlab, Kota Hara , .

  • , , , , , . .

, , - , , , , Mathworks , - , , .

+1

Source: https://habr.com/ru/post/1695881/


All Articles