how to predict when model rules are converted to a matrix

Hi every body I'm trying to implement a genetic algorithm on a decision tree, for my master thesis. First, I decide to convert the obtained decision tree in R to a matrix manually (it's a time consuming task cause I couldn't find a function to do this in R or Matlab) while each row of this matrix represents a rule of the tree. Now the question is that how I can use this matrix to predict accuracy of built model (Decision tree)through a new data? Is there any function to do this action in matlab?
Many thank for any response,

Réponses (0)

Cette question est clôturée.

Question posée :

S
S
le 9 Oct 2013

Clôturé :

le 20 Août 2021

Community Treasure Hunt

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

Start Hunting!

Translated by