Description Usage Arguments Details Value Author(s) Examples
Mallow's C_p is named for Colin Lingwood Mallows. It is used to assess the fit of regression model, finding the best model involving a subset of predictive variables available for predicting some outcome.
1 | mallow(y, y_pred, y_sub, k, p)
|
y |
array-like of shape = (n_samples) or (n_samples, n_outputs), True target variable(s) |
y_pred |
array-like of shape = (n_samples) or (n_samples, n_outputs) Fitted target variable(s) obtained from your regression model |
y_sub |
array-like of shape = (n_samples) or (n_samples, n_outputs) Fitted target variable(s) obtained from your subset regression model |
k |
(int,like 2L)Number of predictive variable(s) used in the model |
p |
(int,like 2L)Number of predictive variable(s) used in the subset model |
C_p = (SSE_k/MSE) - (n - 2k)
mallow_score: float
Ruoqi XU
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.