Skip to content

Commit 84d207c

Browse files
authored
Merge pull request #255 from interpretml/gaugup/FixMinorBugDiceKdTree
Fix failure in dice_kdtree.py due to undefined variable
2 parents e053592 + 2af85de commit 84d207c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

dice_ml/explainer_interfaces/dice_KD.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ def find_counterfactuals(self, data_df_copy, query_instance, query_instance_orig
260260
if total_cfs_found < total_CFs:
261261
self.elapsed = timeit.default_timer() - start_time
262262
m, s = divmod(self.elapsed, 60)
263-
print('Only %d (required %d) ' % (total_cfs_found, self.total_CFs),
263+
print('Only %d (required %d) ' % (total_cfs_found, total_CFs),
264264
'Diverse Counterfactuals found for the given configuation, perhaps ',
265265
'change the query instance or the features to vary...' '; total time taken: %02d' % m,
266266
'min %02d' % s, 'sec')

0 commit comments

Comments
 (0)