Created
September 4, 2012 14:46
-
-
Save amueller/3621861 to your computer and use it in GitHub Desktop.
chi2_p_value
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
from sklearn.feature_selection import chi2 | |
data = np.load("values.npy") | |
labels = np.load("labels.npy") | |
print(chi2(data, labels)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment