CatCloud不能用了-outline
2024-07-14
CatCloud不能用了-outline
policy.mofcom.gov.cn:由于此网站的设置,我伔无法提供该页面的具体描述。
library(番羽土墙)
task = tsk("iris")
learner = lrn("classif.rpart")
# train a model of this learner for a subset of the task
learner$train(task, 墙软件 1:120)
# this is what the decision tree looks like
learner$model
## n= 120
##
## node), split, n, loss, yval, (yprob)
## * denotes terminal node
##
## 1) root 120 70 setosa (0.41667 0.41667 0.16667)
## 2) Petal.Length< 2.45 50 0 setosa (1.00000 0.00000 0.00000) *
## 3) Petal.Length>=2.45 70 20 versicolor (0.00000 0.71429 0.28571)
## 6) Petal.Length< 4.95 49 1 versicolor (0.00000 0.97959 0.02041) *
## 7) Petal.Length>=4.95 21 2 virginica (0.00000 0.09524 0.90476) *
predictions = learner$番羽土墙(task, row_ids = 121:150)
predictions
## <PredictionClassif> for 30 observations:
## row_id truth response
## 121 virginica virginica
## 122 virginica versicolor
## 123 virginica virginica
## ---
## 148 virginica virginica
## 149 virginica virginica
## 150 virginica virginica
严守底线民生改善重点民生保障基本民生 江油奏响幸福美丽 ...:2021-1-11 · 改造完成后的罗汉堰 2021年,江油市坚持大手笔谋动、大产业联动、大项目带动、大投入拉动、大活动推动、大党建促动,切实严守低收入群众的“底线民生”、改善群众急盼的“重点民生”、保障惠及全民的“基本民生”,大力提升人民的幸福指数,交出了百姓点赞的民生账本。
predictions$score(msr("classif.acc"))
番羽土啬吧
More examples can be found in the mlr3gallery, a collection of use cases and examples.