Skip to content

Instantly share code, notes, and snippets.

@fuwiak
Last active April 14, 2020 16:58
Show Gist options
  • Save fuwiak/7cf5182cd4f66586d5a3cc717cfbf7cc to your computer and use it in GitHub Desktop.
Save fuwiak/7cf5182cd4f66586d5a3cc717cfbf7cc to your computer and use it in GitHub Desktop.
#Correlation with output variable
cor_target_list = list(map(np.abs, cor_target))
score=[]
for target in cor_target:
#Selecting highly correlated features
relevant_features = cor_target[target>0.9]
score.append((target, relevant_features ))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment