Closed marmg closed 4 years ago
I am getting the same error. This happened when scikitlearn went to the 0.20 version. Any thoughts as to what needs to change? Any help would be greatly appreciated.
I played around with the notebook a little, managed to fix it: There are 2 issues, oth in the 'lime_timeseries.py' file:
First of all, on line 114, it should become a 1d array (not sure why it doesn't work by default).
it needs to become this: x, x[0].reshape(1, -1), metric='cosine').ravel() * 100
Second of all, I'm not sure if this is for all versions of lime, but it is an issue for the latest version. Line 76 needs to change into ret_exp.score, _) = self.base.explain_instance_with_data(data, yss, distances, label, num_features,
I already made an issue about this in the LIME project: https://github.com/marcotcr/lime/issues/292
After those 2 changes, it worked for me.
Hi, I am trying to use the library with the example of the coffe dataset and I am getting the next error:
`--------------------------------------------------------------------------- ValueError Traceback (most recent call last)