Lime: Explaining the predictions of any machine learning classifier
BSD 2-Clause "Simplified" License
11.41k
stars
1.79k
forks
source link
[Multiclass Thai Text Classification] IndexError: too many indices for array: array is 1-dimensional, but 2 were indexed #685
Open
setthawut8 opened 1 year ago
"IndexError: too many indices for array: array is 1-dimensional, but 2 were indexed"
the current model is BayesSearchCV as a below image![Screenshot 2022-07-27 152031](https://user-images.githubusercontent.com/75829649/181198366-a329cf41-a57b-44d2-b87c-0d88617916d7.png)
an example of the prediction based as a below image![Screenshot 2022-07-27 150626](https://user-images.githubusercontent.com/75829649/181195589-ac513775-7182-4185-aae0-f4a753564923.png)
and codes for the lime as a below image.![Screenshot 2022-07-27 150927](https://user-images.githubusercontent.com/75829649/181196126-9a16c5a7-dacf-4021-ba9f-4b66acc40f28.png)
My question is how to turn above prediction (or output) to be 2D output as you did or can I have your addressed codes.
Thank you for your helps.