Skip to content

Commit

Permalink
hotfix missing split fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
timkucera authored Jul 3, 2024
1 parent c6d578a commit a5aa263
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions proteinshake/tasks/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ def compute_index(self):
self.val_index = np.array([i for i,p in enumerate(self.proteins) if p['protein'][split_name] == 'val'])
self.test_index = np.array([i for i,p in enumerate(self.proteins) if p['protein'][split_name] == 'test'])
else:
print('Could not find pre-computed split. Falling back to compute_custom_split, which by default is a random split.')
self.train_index, self.val_index, self.test_index = self.compute_custom_split(self.split)

self.update_index()
Expand Down

0 comments on commit a5aa263

Please sign in to comment.