posthoc.Workbench(model, cov=None, pattern_modifier=None, normalizer_modifier=None)¶Work bench for post-hoc alteration of a linear model.
Decomposes the .coef_ of a linear model into a covariance matrix, a
pattern and a normalizer. These components are then altered by user
speficied functions and the linear model is re-assembled.
| Parameters: |
|
|---|---|
| Attributes: |
|
Methods
fit(X, y) |
Fit the model to the data. |
fit_transform(X[, y]) |
Fit to data, then transform it. |
get_params([deep]) |
Get parameters for this estimator. |
inverse_predict(y) |
Apply the inverse of the linear model to the targets. |
predict(X) |
Predict using the linear model |
score(X, y[, sample_weight]) |
Returns the coefficient of determination R^2 of the prediction. |
set_params(**params) |
Set the parameters of this estimator. |
transform(X) |
Apply the model to the data. |
__hash__($self, /)¶Return hash(self).