This error occurs when you try to evaluate a classification model on a dataset that has both categorical (multiclass) and continuous (numeric) targets. Classification metrics such as accuracy, precision, recall, and F1-score are designed to work with categorical targets only.
To fix this error, make sure that your target variable is categorical and not continuous. If you have a mix of categorical and continuous variables in your dataset, consider separating them into two separate datasets or using regression models instead of classification models for the continuous variables.