@@ -1328,7 +1328,7 @@ def convert_db(db, filepath=None):
13281328 return cls (dashboards , ** update_kwargs (config , ** update_params ))
13291329
13301330 def to_yaml (self , filepath :Path = None , dump_explainers = True ,
1331- return_dict = False , integrate_dashboard_yamls = False ):
1331+ return_dict = False , integrate_dashboard_yamls = False , pickle_type = "joblib" ):
13321332 """Store ExplainerHub to configuration .yaml, store the users to users.json
13331333 and dump the underlying dashboard .yamls and explainers.
13341334
@@ -1347,6 +1347,8 @@ def to_yaml(self, filepath:Path=None, dump_explainers=True,
13471347 separate_dashboard_yamls=True. Defaults to False.
13481348 integrate_dashboard_yamls(bool, optional): Do not generate an individual
13491349 .yaml file for each dashboard, but integrate them in hub.yaml.
1350+ pickle_type ({'joblib', 'dill', 'pkl'}, optional). Format to dump explainers in.
1351+ Defaults to "joblib". Alternatives are "dill" and "pkl".
13501352
13511353 Returns:
13521354 {dict, yaml, None}
@@ -1368,7 +1370,7 @@ def to_yaml(self, filepath:Path=None, dump_explainers=True,
13681370 for dashboard in self .dashboards :
13691371 print (f"Storing { dashboard .name } _dashboard.yaml..." )
13701372 dashboard .to_yaml (filepath .parent / (dashboard .name + "_dashboard.yaml" ),
1371- explainerfile = filepath .parent / (dashboard .name + "_explainer.joblib " ),
1373+ explainerfile = filepath .parent / (dashboard .name + f "_explainer.{ pickle_type } " ),
13721374 dump_explainer = dump_explainers )
13731375 hub_config = dict (
13741376 explainerhub = dict (
0 commit comments