square {lazy.tree} | R Documentation |
Test Data for Classification Tree without Error
square
A data frame with 16 observations and 12 variables
num: the horizontal coordinate (regressor variable)
num: the vertical coordinate (regressor variable)
factor: the horizontal coordinate (regressor variable)
factor: the vertical coordinate (regressor variable)
num: the name of the regions (most simple criterion variable)
num: the name of the regions (most simple criterion variable)
num: the name of the regions
num: the name of the regions
num: the name of the regions (most complex criterion variable)
num: the name of the regions (most complex criterion variable)
num: the name of the regions (most complex criterion variable)
#'
num: the name of the regions (6 regions)
factor: the name of the regions (most simple criterion variable)
factor: the name of the regions (most simple criterion variable)
factor: the name of the regions
factor: the name of the regions
factor: the name of the regions (most complex criterion variable)
factor: the name of the regions (most complex criterion variable)
factor: the name of the regions (most complex criterion variable)
factor: the name of the regions (6 regions)
This data consist of 16 observations of two dimensional data.
A plane was divided into 4 or 5 regeons.
Use below to see the structure:
plot(square$x1,square$x2, type="n") text(square$x1,square$x2,square$Class5, cex=2) SQ2=matrix(square$class5, 4,, byrow=1) heatmap( t(SQ2), Rowv=NA, Colv=NA, reorderfun=NA, symm=1 , labRow=4:1, labCol=1:4, revC=TRUE ) plot(square$x1,square$x2, type="n") text(square$x1,square$x2,square$Class6, cex=2) SQ2=matrix(square$class6, 4,, byrow=1) heatmap( t(SQ2), Rowv=NA, Colv=NA, reorderfun=NA, symm=1 , labRow=4:1, labCol=1:4, revC=TRUE )
Examples of DecTree analysis
res=DecTree( square$Class5, square[,c("x1","x2")], maxdepth=4 , majestic=0, rf=0 , print=3, plot=1, title="v", impfuncname="entropy") ni=node_info_dt( res, depth=400 ) res=DecTree( square$Class5, square[,c("c1","c2")], maxdepth=4, method=4 , majestic=0, rf=0 , print=3, plot=1, title="b", impfuncname="entropy") ni=node_info_dt( res, depth=400 ) res=DecTree( square$Class6, square[,c("x1","x2")], maxdepth=4 , majestic=0, rf=0 , print=3, plot=1, title="b", impfuncname="entropy") ni=node_info_dt( res, depth=400 ) res=DecTree( square$Class6, square[,c("c1","c2")], maxdepth=4, method=1 , majestic=0, rf=0 , print=3, plot=1, title="b", impfuncname="entropy") ni=node_info_dt( res, depth=400 )
Generated by author.