shap.utils.delta_minimization_order

shap.utils.delta_minimization_order(all_masks, max_swap_size=100, num_passes=2)