Skip to content

Commit

Permalink
refine = 'both' to retain old behaviour for dope scores
Browse files Browse the repository at this point in the history
  • Loading branch information
SCMusson committed Jun 28, 2023
1 parent 9ccea59 commit 68f788c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/bb_example_subclassing_trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,14 @@ def valid_step(self, batch):
decoded_batch = (self._internal['decoded'].permute(0,2,1)*self.std).data.cpu().numpy()
for f in decoded_batch:
if np.isfinite(f).all():
self.dope_scores.append(self.dope_score_class.get_score(f,refine=True))
self.dope_scores.append(self.dope_score_class.get_score(f,refine='both'))

#Calcutate dope of interpolated/generated structures
self.interp_dope_scores = []
interpolated_batch = (self._internal['generated'].permute(0,2,1)*self.std).data.cpu().numpy()
for f in interpolated_batch:
if np.isfinite(f).all():
self.interp_dope_scores.append(self.dope_score_class.get_score(f,refine=True))
self.interp_dope_scores.append(self.dope_score_class.get_score(f,refine='both'))
# These will calculate in the background, synchronize at the end of the epoch.
return results

Expand Down

0 comments on commit 68f788c

Please sign in to comment.