I am starting out and working my way through machine learning algorithms. I am trying adaboost but finding that the processing time seems to be endless i.e. it is still running after 10-15 minutes. The code is below. Should it take this long? It is a small dataset (around 350 samples with 7 dependent variables).
If I try it with cross-validation I get the following error:
model<-boosting.cv(inflammatory~.,data=BF_train,boos=TRUE,mfinal=10,v=5)
Error in boosting.cv(inflammatory ~ ., data = BF_train, boos = TRUE, mfinal = 10, :
v should be in [2, n]
also I don't understand your cv issue, the only way I can trigger your error is to set v higher than the number of observations in the input data.
model_2<-boosting.cv(Y~.,data=fakedata,boos=TRUE,mfinal=10,v=3)
# if v is not less than the number of observations....
model_201<-boosting.cv(Y~.,data=fakedata,boos=TRUE,mfinal=10,v=201)