Skip to content

Commit

Permalink
created correct_sign function
Browse files Browse the repository at this point in the history
  • Loading branch information
akhilsnair2017 committed Mar 27, 2024
1 parent 4c6dbaf commit 347076a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/mobo_qm9.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,8 @@ def get_surrogate_model(self, X, y, kernel_type='RBF'):

return model

y_copy = y.copy()
def correct_sign(self,Y)
y_copy = Y.copy()
for idx, mask in enumerate(self.params.target_bools):
if not mask:
y_copy[:, idx] *= -1
Expand Down

0 comments on commit 347076a

Please sign in to comment.