Quantcast
Channel: Data Science, Analytics and Big Data discussions - Latest topics
Viewing all articles
Browse latest Browse all 4448

How to predict class labels in test data which does not contain the class labels

$
0
0

@pagal_guy wrote:

hello,

I am trying to use boosting for prediction using the below code:

control.boost=rpart.control(maxdepth = 30,xval = 5)
model.boost=boosting(class ~.,data = training,mfinal = 500,control = control.boost)
#Now on testData:
pred.model.boost=predict(model.boost,newdata = testData)

The test data does not contain the Y label class and I guess that is why I am getting the error:

I think because boosting using instances of missclassified instances for weighting this error is occurring.The same is not happening when I am using random forest.
can someone please help me on this??

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4448

Trending Articles