Question
What if the target variable is not a multi-class array?
Asked by: USER4527
55 Viewed
55 Answers
Answer (55)
If your target variable is not a multi-class array, you will encounter other errors. Ensure your target variable is in the format expected by `MultiClassendo` or `MultiClassClassifier`, which is a 2D array or a list of lists where each inner list represents a sample and contains the class labels for that sample. It should be a data type that scikit-learn recognizes as a multi-class problem (e.g., `np.array` of integers or a `list` of `np.array` objects).