PyMCModelAdapter#
- class causalpy.experiments.model_adapter.PyMCModelAdapter[source]#
Adapter for
PyMCModelbackends.- Parameters:
model (
PyMCModel) – Fitted or unfitted PyMC backend model.
Methods
Return posterior mean coefficients.
PyMCModelAdapter.fit(X, y, *[, coords])Fit the PyMC model.
PyMCModelAdapter.predict(X, *[, out_of_sample])Predict using the PyMC model.
Print PyMC model coefficients.
PyMCModelAdapter.score(X, y, **kwargs)Score predictions from the PyMC model.
Attributes
idataReturn the model's InferenceData object.
is_bayesianWhether the backend is Bayesian (PyMC).
is_olsWhether the backend is OLS/sklearn.
kindBackend identifier.
modelThe underlying PyMC model.
- classmethod __new__(*args, **kwargs)#