@@ -379,13 +379,9 @@ def data_config():
379
379
s3_data_input_path = "s3://input/train.csv" ,
380
380
s3_output_path = "s3://output/analysis_test_result" ,
381
381
label = "Label" ,
382
- headers = [
383
- "Label" ,
384
- "F1" ,
385
- "F2" ,
386
- "F3" ,
387
- ],
382
+ headers = ["Label" , "F1" , "F2" , "F3" , "F4" ],
388
383
dataset_type = "text/csv" ,
384
+ joinsource = "F4" ,
389
385
)
390
386
391
387
@@ -455,7 +451,9 @@ def test_pre_training_bias(
455
451
"F1" ,
456
452
"F2" ,
457
453
"F3" ,
454
+ "F4" ,
458
455
],
456
+ "joinsource_name_or_index" : "F4" ,
459
457
"label" : "Label" ,
460
458
"label_values_or_threshold" : [1 ],
461
459
"facet" : [{"name_or_index" : "F1" }],
@@ -516,9 +514,11 @@ def test_post_training_bias(
516
514
"F1" ,
517
515
"F2" ,
518
516
"F3" ,
517
+ "F4" ,
519
518
],
520
519
"label" : "Label" ,
521
520
"label_values_or_threshold" : [1 ],
521
+ "joinsource_name_or_index" : "F4" ,
522
522
"facet" : [{"name_or_index" : "F1" }],
523
523
"group_variable" : "F2" ,
524
524
"methods" : {"post_training_bias" : {"methods" : "all" }},
@@ -646,8 +646,25 @@ def _run_test_explain(
646
646
"F1" ,
647
647
"F2" ,
648
648
"F3" ,
649
+ "F4" ,
649
650
],
650
651
"label" : "Label" ,
652
+ "joinsource_name_or_index" : "F4" ,
653
+ "methods" : {
654
+ "shap" : {
655
+ "baseline" : [
656
+ [
657
+ 0.26124998927116394 ,
658
+ 0.2824999988079071 ,
659
+ 0.06875000149011612 ,
660
+ ]
661
+ ],
662
+ "num_samples" : 100 ,
663
+ "agg_method" : "mean_sq" ,
664
+ "use_logit" : False ,
665
+ "save_local_shap_values" : True ,
666
+ }
667
+ },
651
668
"predictor" : expected_predictor_config ,
652
669
}
653
670
expected_explanation_configs = {}
0 commit comments