美文网首页
7275 DataMining

7275 DataMining

作者: 布咖 | 来源:发表于2020-12-03 12:18 被阅读0次

1.创建二叉树。
...
class.tree <- rpart(Ownership~., data = dataset.df, control = rpart.control(maxdepth = 2), method = "class")
prp(class.tree, type = 1, extra = 1, under = TRUE split.font = 1, varlen = 0)#defult值
length(class,treeframevar[class.treeframevar == "<leaf>"])计算叶结点数量
...

相关文章

网友评论

      本文标题:7275 DataMining

      本文链接:https://www.haomeiwen.com/subject/hnrmwktx.html