### confusion matrix of bstTree predictions, Error: 'The data must contain some levels that overlap the reference.'?

I am trying to train a model using bstTree method and print out the confusion matrix. adverse_effects is my class at...

### error : argument “x” is missing, with no default??

As im very new to XGBoost, I am trying to tune the parameters using mlr library and model but after using setHayperP...

### Error in ConfusionMatrix the data and reference factors must have the same number of levels?

I've trained a tree model with R caret. I'm now trying to generate a confusion matrix and keep getting the following...

### R package caret confusionMatrix with missing categories?

I am using the function confusionMatrix in the R package caret to calculate some statistics for some data I have. I...

### Using Caret Package but Getting Error in library(e1071)?

Here are my codes, pretty standard but I am getting the error msg: library(caret) set.seed(32343) modelFit = train(...

### The train function in R caret package?

Suppose I have a data set and I want to do a 4-fold cross validation using logistic regression. So there will be 4 d...

### Applying k-fold Cross Validation model using caret package?

Let me start by saying that I have read many posts on Cross Validation and it seems there is much confusion out ther...

### Creating data partition in R?

With caret package, when creating data partition 75% training and 25% test, we use: inTrain<- createDataPartitio...

### Logistic Regression Tuning Parameter Grid in R Caret Package??

I am trying to fit a logistic regression model in R using the caret package. I have done the following: model <-...

### How does createDataPartition function from caret package split data??

From the documentation: For bootstrap samples, simple random sampling is used. For other data splitting, the random...