필터 지우기
필터 지우기

decision tree const. prob.

조회 수: 2 (최근 30일)
Ah01mat
Ah01mat 2011년 12월 27일
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
  댓글 수: 1
Ah01mat
Ah01mat 2011년 12월 27일
helppppp

댓글을 달려면 로그인하십시오.

채택된 답변

Ilya
Ilya 2011년 12월 27일
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.

추가 답변 (2개)

Ah01mat
Ah01mat 2011년 12월 27일
im mean psudo code to matlab script . i guess i have to do it myself . i feel hopeless.
  댓글 수: 1
Ilya
Ilya 2011년 12월 27일
This is a fairly simple project. Most of what you need is already in classregtree/disp.

댓글을 달려면 로그인하십시오.


Tessy
Tessy 2011년 12월 29일
type in the matlab prompt :
edit classregtree
and you got the code.
  댓글 수: 1
Ah01mat
Ah01mat 2011년 12월 30일
i dont want to see classregtree code i want t see my tree's code

댓글을 달려면 로그인하십시오.

Community Treasure Hunt

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

Start Hunting!

Translated by