@@ -113,21 +113,19 @@ def _input_fn():
113113 return dataset .batch (1 ).cache ()
114114
115115 estimator = init_model_with_feature_column (estimator_cls , model_params )
116- driver = "paiio"
117116 conn = PaiIOConnection .from_table (result_table ) if result_table else None
118117 if estimator_cls in (tf .estimator .BoostedTreesClassifier ,
119118 tf .estimator .BoostedTreesRegressor ):
120119 explain_boosted_trees (datasource , estimator , _input_fn , plot_type ,
121- result_table , feature_column_names , driver , conn ,
122- "" , "" , "" , "" , oss_dest , oss_ak , oss_sk ,
123- oss_endpoint , oss_bucket_name )
120+ result_table , feature_column_names , conn ,
121+ oss_dest , oss_ak , oss_sk , oss_endpoint ,
122+ oss_bucket_name )
124123 else :
125124 shap_dataset = pd .DataFrame (columns = feature_column_names )
126125 for i , (features , label ) in enumerate (_input_fn ()):
127126 shap_dataset .loc [i ] = [
128127 item .numpy ()[0 ][0 ] for item in features .values ()
129128 ]
130129 explain_dnns (datasource , estimator , shap_dataset , plot_type ,
131- result_table , feature_column_names , driver , conn , "" , "" ,
132- "" , "" , oss_dest , oss_ak , oss_sk , oss_endpoint ,
133- oss_bucket_name )
130+ result_table , feature_column_names , conn , oss_dest ,
131+ oss_ak , oss_sk , oss_endpoint , oss_bucket_name )
0 commit comments