Commit 942bec66 authored by JunqiJiang's avatar JunqiJiang
Browse files

update lime

parent 99a919d8
......@@ -144,7 +144,7 @@ class LimeBase(object):
n_txt_features,
n_img_features,
n_det_features,
feature_selection="auto",
feature_selection="none",
model_regressor=None,
):
"""Takes perturbed data, labels and distances, returns explanation.
......
......@@ -589,7 +589,7 @@ class LimeMultimodalExplainer(object):
delta_txt = abs(calibrated_labels[-1][0] - calibrated_labels[0][0])
delta_img = abs(calibrated_labels[-1][0] - calibrated_labels[1][0])
ratio_txt_img = max(min(10, delta_txt / delta_img), 0.1)
ratio_txt_img = max(min(100, delta_txt / delta_img), 0.01)
except:
dummy_text = ""
dummy_image = np.zeros_like(self.image)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment