i have omitted it and now it is working. but I want to create a confusion matrix with it now like this:
confusionMatrix(Prediction1,liver.test$is_patient)
but i receive this error:
Error: data and reference should be factors with the same levels.
what does that mean and how can i fix that ?