Skip to content

Commit

Permalink
fixed merging error
Browse files Browse the repository at this point in the history
  • Loading branch information
stewarthe6 committed Sep 11, 2024
1 parent 49dc67b commit b41b7d5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions atomsci/ddm/pipeline/model_datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -660,7 +660,7 @@ def combined_training_data(self):
combined_y = np.concatenate((train.y, valid.y), axis=0)
combined_w = np.concatenate((train.w, valid.w), axis=0)
combined_ids = np.concatenate((train.ids, valid.ids))
self.combined_train_valid_data = NumpyDataset(combined_X, combined_y, w=combined_w, ids=combined_ids)
self.combined_train_valid_data = NumpyDataset(combined_X, combined_y, w=combined_w, ids=combined_ids)
return self.combined_train_valid_data

# ****************************************************************************************
Expand Down Expand Up @@ -697,8 +697,7 @@ def get_subset_responses_and_weights(self, subset, transformers):
"""
if subset not in self.subset_response_dict:
if subset in ('train', 'valid', 'train_valid'):
for fold, (train, valid) in enumerate(self.train_valid_dsets):
dataset = self.combined_training_data()
dataset = self.combined_training_data()
elif subset == 'test':
dataset = self.test_dset
else:
Expand Down

0 comments on commit b41b7d5

Please sign in to comment.