Spaces:
Runtime error
Runtime error
remove typing error
Browse files
app.py
CHANGED
@@ -19,7 +19,7 @@ predictor.fit( wines.drop('label', axis=1), wines['label'] )
|
|
19 |
def plot_explanation(instance_part_1, instance_part_2, instance_part_3, sigma):
|
20 |
instance_pd = pd.concat([instance_part_1, instance_part_2, instance_part_3], axis=1)
|
21 |
instance_np = instance_pd.to_numpy().squeeze()
|
22 |
-
explainer =
|
23 |
training_data = wines.drop('label', axis=1), #.to_numpy(),
|
24 |
feature_names = wines.columns[1:].to_list(),
|
25 |
discretize_continuous = False, kernel_width=sigma
|
|
|
19 |
def plot_explanation(instance_part_1, instance_part_2, instance_part_3, sigma):
|
20 |
instance_pd = pd.concat([instance_part_1, instance_part_2, instance_part_3], axis=1)
|
21 |
instance_np = instance_pd.to_numpy().squeeze()
|
22 |
+
explainer = LimeTabularExplainer(
|
23 |
training_data = wines.drop('label', axis=1), #.to_numpy(),
|
24 |
feature_names = wines.columns[1:].to_list(),
|
25 |
discretize_continuous = False, kernel_width=sigma
|