anaconda实现卡方检验
时间: 2023-12-21 15:31:02 浏览: 60
卡方检验
5星 · 资源好评率100%
```shell
conda install -c anaconda scikit-learn
```
```python
from sklearn.feature_selection import SelectKBest
from sklearn.feature_selection import chi2
X_new = SelectKBest(chi2, k=2).fit_transform(X, y)
```
阅读全文