Open DarthZonke opened 3 months ago
I cannot use "feature_weights" on DICE, I am getting the error below, please assist:
Code: query_instance = denied_loans.drop(columns="predicted") dice_exp = exp.generate_counterfactuals(query_instance, total_CFs=1, desired_class="opposite", features_to_vary=vary_feature, proximity_weight=1, diversity_weight=0, categorical_penalty=1, . feature_weights=feature_weights, random_seed=42, verbose=True, method="genetic")
dice_exp.visualize_as_dataframe()
Error:
TypeError Traceback (most recent call last)
I cannot use "feature_weights" on DICE, I am getting the error below, please assist:
Code: query_instance = denied_loans.drop(columns="predicted") dice_exp = exp.generate_counterfactuals(query_instance, total_CFs=1, desired_class="opposite", features_to_vary=vary_feature, proximity_weight=1, diversity_weight=0,
categorical_penalty=1, . feature_weights=feature_weights, random_seed=42, verbose=True, method="genetic")
dice_exp.visualize_as_dataframe()
Error:
TypeError Traceback (most recent call last)