Displaying 2 results from an estimated 2 matches for "convert_tree".
2011 Jun 06
2
Obtener las reglas de un árbol de decisión
Hola,
Me gustaría obtener las reglas que genero con un árbol de decicisión
creado con party. Algo parecido a lo que realiza esta función con rpart
http://www.togaware.com/datamining/survivor/Convert_Tree.html la idea es
disponer de esas reglas en un fichero de texto.
En general si alguien sabe de algún paquete que permita obtener el código
que genera la puntuación, el "score" para un modelo porque me gustaría
crear un puente entre R y otras herramientas.
Gracias, saludos.
Raúl Vaqueriz...
2008 Oct 27
0
Displaying number of Y/N affected by tree in rule form RE: R question/request on rules from rpart
...sing use.n it is hard to read the numbers
> and found your rule function to be very neat.
>
> It would be great if it could be enhanced to print the number of Y
> and N affected by the rule.
>
> thanks
> Dhruv
>
>
> http://datamining.togaware.com/survivor/Convert_Tree.html
>
> list.rules.rpart <- function(model)
> {
> if (!inherits(model, "rpart")) stop("Not a legitimate rpart tree")
> #
> # Get some information.
> #
> frm <- model$frame
> names <- row.names(frm)
> ylevels <- att...