decision tree const. prob.
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
hello i have a problem about making a decision tree. i can make a decision tree via classregtree(X,y) . then it constructthe tree. but i want to get the the code that represents my tree. how can i get the code of tree ( not making by hand) ? thanks
Réponse acceptée
Ilya
le 27 Déc 2011
Depends on what you mean by "code of the tree".
If you want to find classregtree code in your MATLAB install, type 'which classregtree'.
If you want to see pseudo-code for the tree, just display the tree in your command window.
If you want to convert this pseudo-code into a MATLAB script, you'd have to do it yourself. You could start by looking at the DISP method of classregtree (type 'which classregtree/disp'). It's the method that produces the pseudo-code you see in the command window.
0 commentaires
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!