Skip to content

Commit

Permalink
0.0.14 (#16)
Browse files Browse the repository at this point in the history
- fix numerai_corr tb200 
- fix max feature corr

---------

Co-authored-by: Christopher Hanes <cshanes@umich.edu>
  • Loading branch information
ndharasz and cshanes committed Dec 13, 2023
1 parent ef97386 commit 74d9e60
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion numerai_tools/scoring.py
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,9 @@ def numerai_corr(
)
predictions = tie_kept_rank__gaussianize__pow_1_5(predictions)
targets = power(targets.to_frame(), 1.5)[targets.name]
scores = predictions.apply(lambda sub: pearson_correlation(targets, sub))
scores = predictions.apply(
lambda sub: pearson_correlation(targets, sub, top_bottom)
)
return scores


Expand Down Expand Up @@ -423,6 +425,7 @@ def max_feature_correlation(
feature_correlations = features.apply(
lambda f: pearson_correlation(f, s, top_bottom)
)
feature_correlations = np.abs(feature_correlations)
max_feature = feature_correlations.idxmax()
max_corr = feature_correlations[max_feature]
return max_feature, max_corr
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from setuptools import find_packages


VERSION = "0.0.13"
VERSION = "0.0.14"


def load(path):
Expand Down

0 comments on commit 74d9e60

Please sign in to comment.