sklearn.feature_selection.f_classif?

sklearn.feature_selection.f_classif(X, y)

[源碼]

計算樣本的ANOVA F值。

用戶指南中閱讀更多內容。

參數 說明
X {array-like, sparse matrix} shape = [n_samples, n_features]
將按順序測試的一組回歸變量集合。
y array of shape(n_samples)
數據矩陣。
返回值 說明
F array, shape = [n_features,]
F值的集合。
pval array, shape = [n_features,]
p值的集合。

另見

chi2

分類任務的非負特征的卡方統計。

f_regression

回歸任務的標簽和特征之間的F值。

sklearn.feature_selection.f_classif使用示例?