Skip to content

Instantly share code, notes, and snippets.

@al102964
Created June 19, 2020 09:35
Show Gist options
  • Save al102964/6612db2df819a6f4958eb9d41c80045e to your computer and use it in GitHub Desktop.
Save al102964/6612db2df819a6f4958eb9d41c80045e to your computer and use it in GitHub Desktop.
print("Mean predictive power score value: {}".format(pps.matrix(df).abs().unstack().sort_values(ascending=False).drop_duplicates().mean()))
print("Mean correlation value: {}".format(df.corr().abs().unstack().sort_values(ascending=False).drop_duplicates().mean()))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment