MATLAB Answers

How to get the result of a classification tree in a matrix?

1 view (last 30 days)
motevalizadeh
motevalizadeh on 6 Dec 2018
I made a Classification Tree, code:
mytree=ClassificationTree.fit(MyData,MyLables);
mytree.view('mode','graph');
My data has two classes and I want to get the result of prediction as a matrix that can show me every data row is belongs to which as an example.
data row predicted class
1 2
2 1
. .
. .
. .
how can i make this matrix?

  0 Comments

Sign in to comment.

Answers (0)