I am working on a multi-label classification task. Most of the feature values are zero. The dataset is a binary vector. When I tried to generate the counterfactual, I got the error like sparse array length is ambiguous; use getnnz() or shape[0]
import numpy as np
e = dice.generate_counterfactuals(data, total_CFs=5, desired_class=1)
e.visualize_as_dataframe(show_only_changes=True)