Skip to content

Instantly share code, notes, and snippets.

@amueller
Created September 4, 2012 14:46
Show Gist options
  • Select an option

  • Save amueller/3621861 to your computer and use it in GitHub Desktop.

Select an option

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