File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -418,13 +418,14 @@ def run():
418418 print(decoded_X_test)
419419
420420
421- # decoded_X_test["cluster_label"] = cluster_label_X_test
422- decoded_X_test[bias_variable] = y_test.values
421+ if localDataType == 'categorical':
422+ decoded_X_test[bias_variable] = y_test.values
423+
423424 decoded_X_test["cluster_label"] = cluster_label_X_test
424425
425426
426427 if localDataType == 'numeric':
427- test_df["cluster_label"] = y_test
428+ test_df["cluster_label"] = cluster_label_X_test
428429 most_biased_cluster_df = test_df[test_df["cluster_label"] == 0]
429430 rest_df = test_df[test_df["cluster_label"] != 0]
430431 else:
@@ -622,7 +623,7 @@ def run():
622623 'biasVariable': bias_variable
623624 }
624625 }))
625-
626+
626627 df_most_biased_cluster = most_biased_cluster_df
627628 df_other = rest_df
628629
You can’t perform that action at this time.
0 commit comments