Invalid classes inferred from unique values of `y`. Expected: [0 1 2 3 4], got [1 2 3 4 5]
时间: 2023-10-11 21:07:30 浏览: 282
mistral-7b-openorca.Q4-0.zip - 1
This error message suggests that the unique values of the target variable (`y`) in the dataset are not what the model expects. In this case, the model expects the target variable to have values of 0, 1, 2, 3, or 4, but instead, it found values of 1, 2, 3, 4, and 5.
To fix this error, you need to check your dataset and make sure that the target variable has the expected values. You may need to remove any instances of the value 5 from your dataset or map it to one of the expected values. Alternatively, you may need to adjust the model to handle the additional class.
阅读全文