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

Class ModelExplainer

data/AutoML/reference_code.py:142–150  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

140 }
141
142class ModelExplainer:
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 1

__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected