MCPcopy Create free account
hub / github.com/GitsSaikat/PyGen / explain_predictions

Method explain_predictions

data/AutoML/reference_code.py:145–150  ·  view source on GitHub ↗
(self, model: BaseEstimator, X: np.ndarray,
                           feature_names: List[str])

Source from the content-addressed store, hash-verified

143
144
145 def explain_predictions(self, model: BaseEstimator, X: np.ndarray,
146 feature_names: List[str]) -> Dict[str, float]:
147
148 if hasattr(model, 'feature_importances_'):
149 return dict(zip(feature_names, model.feature_importances_))
150 return {}
151
152class ModelDeployer:
153

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected