require(adabag)
data(diamonds)
ind = sample(2, nrow(iris), replace = T, prob = c(0.8, 0.2))
train = diamonds[ind==1,]
test = diamonds[ind==2,]
boost = boosting(cut ~ carat + price, data = diamonds, boos = T, mfinal = 5)
这是我第一次使用adabag
包,我想知道最后一行代码运行超过1小时是否正常? train
中有37766行。
感谢您的回答!