@@ -765,7 +765,10 @@ def test_pre_training_bias(
765
765
"label_values_or_threshold" : [1 ],
766
766
"facet" : [{"name_or_index" : "F1" }],
767
767
"group_variable" : "F2" ,
768
- "methods" : {"pre_training_bias" : {"methods" : "all" }},
768
+ "methods" : {
769
+ 'report' : {'name' : 'report' , 'title' : 'Analysis Report' },
770
+ "pre_training_bias" : {"methods" : "all" }
771
+ },
769
772
}
770
773
mock_method .assert_called_with (
771
774
data_config ,
@@ -828,7 +831,10 @@ def test_post_training_bias(
828
831
"joinsource_name_or_index" : "F4" ,
829
832
"facet" : [{"name_or_index" : "F1" }],
830
833
"group_variable" : "F2" ,
831
- "methods" : {"post_training_bias" : {"methods" : "all" }},
834
+ "methods" : {
835
+ 'report' : {'name' : 'report' , 'title' : 'Analysis Report' },
836
+ "post_training_bias" : {"methods" : "all" }
837
+ },
832
838
"predictor" : {
833
839
"model_name" : "xgboost-model" ,
834
840
"instance_type" : "ml.c5.xlarge" ,
@@ -986,7 +992,10 @@ def _run_test_explain(
986
992
"grid_resolution" : 20 ,
987
993
"top_k_features" : 10 ,
988
994
}
989
- expected_analysis_config ["methods" ] = expected_explanation_configs
995
+ expected_analysis_config ["methods" ] = {
996
+ 'report' : {'name' : 'report' , 'title' : 'Analysis Report' },
997
+ ** expected_explanation_configs ,
998
+ }
990
999
mock_method .assert_called_with (
991
1000
data_config ,
992
1001
expected_analysis_config ,
@@ -1295,7 +1304,10 @@ def test_analysis_config_generator_for_explainability(data_config, model_config)
1295
1304
'headers' : ['Label' , 'F1' , 'F2' , 'F3' , 'F4' ],
1296
1305
'joinsource_name_or_index' : 'F4' ,
1297
1306
'label' : 'Label' ,
1298
- 'methods' : {'shap' : {'save_local_shap_values' : True , 'use_logit' : False }},
1307
+ 'methods' : {
1308
+ 'report' : {'name' : 'report' , 'title' : 'Analysis Report' },
1309
+ 'shap' : {'save_local_shap_values' : True , 'use_logit' : False }
1310
+ },
1299
1311
'predictor' : {'initial_instance_count' : 1 ,
1300
1312
'instance_type' : 'ml.c5.xlarge' ,
1301
1313
'label_headers' : ['success' ],
@@ -1317,7 +1329,10 @@ def test_analysis_config_generator_for_bias_pre_training(data_config, data_bias_
1317
1329
'joinsource_name_or_index' : 'F4' ,
1318
1330
'label' : 'Label' ,
1319
1331
'label_values_or_threshold' : [1 ],
1320
- 'methods' : {'pre_training_bias' : {'methods' : 'all' }}}
1332
+ 'methods' : {
1333
+ 'report' : {'name' : 'report' , 'title' : 'Analysis Report' },
1334
+ 'pre_training_bias' : {'methods' : 'all' }}
1335
+ }
1321
1336
assert actual == expected
1322
1337
1323
1338
@@ -1340,7 +1355,10 @@ def test_analysis_config_generator_for_bias_post_training(data_config, data_bias
1340
1355
'joinsource_name_or_index' : 'F4' ,
1341
1356
'label' : 'Label' ,
1342
1357
'label_values_or_threshold' : [1 ],
1343
- 'methods' : {'post_training_bias' : {'methods' : 'all' }},
1358
+ 'methods' : {
1359
+ 'report' : {'name' : 'report' , 'title' : 'Analysis Report' },
1360
+ 'post_training_bias' : {'methods' : 'all' }
1361
+ },
1344
1362
'predictor' : {'initial_instance_count' : 1 ,
1345
1363
'instance_type' : 'ml.c5.xlarge' ,
1346
1364
'label_headers' : ['success' ],
@@ -1369,8 +1387,10 @@ def test_analysis_config_generator_for_bias(data_config, data_bias_config, model
1369
1387
'joinsource_name_or_index' : 'F4' ,
1370
1388
'label' : 'Label' ,
1371
1389
'label_values_or_threshold' : [1 ],
1372
- 'methods' : {'post_training_bias' : {'methods' : 'all' },
1373
- 'pre_training_bias' : {'methods' : 'all' }},
1390
+ 'methods' : {
1391
+ 'report' : {'name' : 'report' , 'title' : 'Analysis Report' },
1392
+ 'post_training_bias' : {'methods' : 'all' },
1393
+ 'pre_training_bias' : {'methods' : 'all' }},
1374
1394
'predictor' : {'initial_instance_count' : 1 ,
1375
1395
'instance_type' : 'ml.c5.xlarge' ,
1376
1396
'label_headers' : ['success' ],
0 commit comments