- 金錢
- 35
- 威望
- 339
- 貢獻值
- 0
- 推廣值
- 0
- 性別
- 保密
- 在線時間
- 2 小時
- 最後登錄
- 2022-5-27
- 主題
- 5
- 精華
- 0
- 閱讀權限
- 30
- 註冊時間
- 2012-6-6
- 帖子
- 51
 
TA的每日心情 | 怒 2022-5-27 16:35 |
---|
簽到天數: 152 天 [LV.7]常住居民III - 推廣值
- 0
- 貢獻值
- 0
- 金錢
- 35
- 威望
- 339
- 主題
- 5
|
lrns = list(
; F2 K6 g2 u$ W. \+ ^ makeLearner("classif.lda", id = "lda"),
8 x# z4 @- \! y( _ makeLearner("classif.rpart", id = "rpart"),
1 k/ g# M _% x2 w+ a6 B8 ^8 V makeLearner("classif.randomForest", id = "randomForest")1 h6 @5 L4 X! c3 Z) W( e1 ~1 o
)! s* D$ S1 n% \: I0 c" e% M% a
8 g% I2 Y- J! h## Get additional Tasks from package mlbench' z" ~! j0 h" t7 m
ring.task = convertMLBenchObjToTask("mlbench.ringnorm", n = 10)
4 Z) J2 x( W8 S" l t% E1 V% zwave.task = convertMLBenchObjToTask("mlbench.waveform", n = 10)1 w; z E% O8 }( V" p. s
: L0 o, G: V. A: ?9 V( K
tasks = list(iris.task, sonar.task, pid.task, ring.task, wave.task)! e4 U6 S1 e# \& L' J
rdesc = makeResampleDesc("CV", iters = 3)4 g# f% o9 l u: D9 _3 I9 ^
meas = list(mmce, ber, timetrain)
0 \! D2 j: y! g, R+ B$ B6 Nbmr = benchmark(lrns, tasks, rdesc, meas, show.info = FALSE)
0 C5 E! j- g* f7 ~, _bmr
$ q, b: }" f+ z3 C( b" x. n$ }plotBMRBoxplots(bmr, measure = ber, style = "violin", pretty.names = FALSE) +
+ G( X+ I/ Z9 F: n aes(color = learner.id) +
# V# y" ?3 m7 r; x$ d( e y theme(strip.text.x = element_text(size = 8)) |
|