Skip to content

Commit

Permalink
Fix minor bug
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhilwoodruff committed Nov 30, 2024
1 parent 381150b commit 6bd1e49
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def loss(w):
def update_weights(weights, mapping_matrix):
mapping_matrix = mapping_matrix.set_index(mapping_matrix.columns[0])
mapping_matrix = mapping_matrix.div(mapping_matrix.sum(), axis=1)
mapped_weights = mapping_matrix.T.dot(weights)
mapped_weights = mapping_matrix.T.dot(weights).values
return mapped_weights[mapping_matrix.columns.argsort(), :]


Expand Down

0 comments on commit 6bd1e49

Please sign in to comment.