sklearn.feature_selection.f_regression(X, y, center=True)
[source]
Univariate linear regression tests.
Linear model for testing the individual effect of each of many regressors. This is a scoring function to be used in a feature seletion procedure, not a free standing feature selection procedure.
This is done in 2 steps:
For more on usage see the User Guide.
Parameters: |
X : {array-like, sparse matrix} shape = (n_samples, n_features) The set of regressors that will be tested sequentially. y : array of shape(n_samples). The data matrix center : True, bool, If true, X and y will be centered. |
---|---|
Returns: |
F : array, shape=(n_features,) F values of features. pval : array, shape=(n_features,) p-values of F-scores. |
See also
mutual_info_regression
f_classif
chi2
SelectKBest
SelectFpr
SelectFdr
SelectFwe
SelectPercentile
sklearn.feature_selection.f_regression
© 2007–2017 The scikit-learn developers
Licensed under the 3-clause BSD License.
http://scikit-learn.org/stable/modules/generated/sklearn.feature_selection.f_regression.html