Skip to content

Commit

Permalink
remove print statements
Browse files Browse the repository at this point in the history
  • Loading branch information
ndharasz committed Sep 10, 2024
1 parent c656914 commit 5d8513a
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions numerai_tools/scoring.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,11 +329,8 @@ def neutralize(
# add a column of 1s to the neutralizer array in case neutralizer_arr is a single column
(neutralizer_arr, np.array([1] * len(neutralizer_arr)).reshape(-1, 1))
)
print(neutralizer_arr)
least_squares = np.linalg.lstsq(neutralizer_arr, df_arr, rcond=1e-6)[0]
print(least_squares)
adjustments = proportion * neutralizer_arr.dot(least_squares)
print(adjustments)
neutral = df_arr - adjustments
return pd.DataFrame(neutral, index=df.index, columns=df.columns)

Expand Down

0 comments on commit 5d8513a

Please sign in to comment.