Created
August 15, 2022 22:27
-
-
Save asit-pal/a9d8b55d02090515c696bcf9cc4b1cd6 to your computer and use it in GitHub Desktop.
mutual_information_with_scikit_learn
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
from sklearn.feature_selection import mutual_info_regression as MIR | |
mutual_information = [] | |
for i in range(1000,100000,1000): | |
distr = multivariate_normal(mean=mean,cov=cov,size=i) | |
X,Y = distr[:,0],distr[:,1] | |
mutual_information.append(MIR(X.reshape(-1,1),Y)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment