Skip to content

Instantly share code, notes, and snippets.

@amueller
Created September 4, 2012 14:46
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amueller/3621861 to your computer and use it in GitHub Desktop.
Save amueller/3621861 to your computer and use it in GitHub Desktop.
chi2_p_value
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