![](https://csdnimg.cn/release/download_crawler_static/86325055/bg11.jpg)
硕博科研思维集训(免费领) https://mp.weixin.qq.com/s/0WFSydHCwEWvpAai5bi4KA
第 17 页
(0.16666667 0.83333333) ## 6) SizeUniformity< 4.5 68 27 malignant
(0.39705882 0.60294118) ## 12) bareNuc< 3.5 26 4 benign (0.84615385
0.15384615) *## 13) bareNuc>=3.5 42 5 malignant (0.11904762
0.88095238) *## 7) SizeUniformity>=4.5 112 3 malignant (0.02678571
0.97321429) *summary(dtree) # 查看决策树具体信息## Call:## rpart(formula =
class ~ ., data = df.train, method = "class", ## parms = list(split =
"information"))## n= 489 ## ## CP nsplit rel error xerror
xstd## 1 0.75471698 0 1.0000000 1.0000000 0.06514843## 2 0.05660377
1 0.2452830 0.3081761 0.04176119## 3 0.01000000 3 0.1320755 0.1761006
0.03231305## ## Variable importance## SizeUniformity shapeUniformity
bareNuc singleEpiCellSize ## 23 17
16 15 ## blandChr normalNuc
maginalAdhesion Tumor_Thickness ## 15 14
1 1 ## ## Node number 1: 489 observations, complexity
param=0.754717## predicted class=benign expected loss=0.3251534
P(node) =1## class counts: 330 159## probabilities: 0.675 0.325
## left son=2 (309 obs) right son=3 (180 obs)## Primary splits:##
SizeUniformity < 2.5 to the left, improve=186.6152, (0 missing)##
shapeUniformity < 2.5 to the left, improve=177.5238, (0 missing)##
bareNuc < 2.5 to the left, improve=176.0200, (11 missing)##
blandChr < 3.5 to the left, improve=172.9661, (0 missing)##
normalNuc < 2.5 to the left, improve=149.5745, (0 missing)##
Surrogate splits:## shapeUniformity < 3.5 to the left, agree=0.914,
adj=0.767, (0 split)## singleEpiCellSize < 2.5 to the left,
agree=0.885, adj=0.689, (0 split)## blandChr < 3.5 to the left,
agree=0.881, adj=0.678, (0 split)## normalNuc < 2.5 to the left,
agree=0.877, adj=0.667, (0 split)## bareNuc < 2.5 to the left,
agree=0.871, adj=0.650, (0 split)## ## Node number 2: 309 observations##
predicted class=benign expected loss=0.02912621 P(node) =0.6319018##
class counts: 300 9## probabilities: 0.971 0.029 ## ## Node number
3: 180 observations, complexity param=0.05660377## predicted
class=malignant expected loss=0.1666667 P(node) =0.3680982## class
counts: 30 150## probabilities: 0.167 0.833 ## left son=6 (68 obs)
right son=7 (112 obs)## Primary splits:## SizeUniformity < 4.5 to
the left, improve=21.59943, (0 missing)## bareNuc < 3.5 to
the left, improve=21.24393, (2 missing)## blandChr < 3.5 to
the left, improve=20.17688, (0 missing)## shapeUniformity < 3.5 to
the left, improve=16.80110, (0 missing)## Tumor_Thickness < 6.5 to
the left, improve=15.72829, (0 missing)## Surrogate splits:##
shapeUniformity < 5.5 to the left, agree=0.789, adj=0.441, (0 split)##
singleEpiCellSize < 3.5 to the left, agree=0.750, adj=0.338, (0 split)##
blandChr < 3.5 to the left, agree=0.711, adj=0.235, (0 split)##
maginalAdhesion < 2.5 to the left, agree=0.706, adj=0.221, (0 split)##
bareNuc < 1.5 to the left, agree=0.672, adj=0.132, (0 split)## ##