ctheodoris hchen725 commited on
Commit
c81f6f9
·
verified ·
1 Parent(s): 01d3ea8

Fix how mappings and train and val data are returned (#473)

Browse files

- Update geneformer/mtl/data.py (cbf98f9a9115ccfe374a081b8758653d83f797b3)


Co-authored-by: Han Chen <hchen725@users.noreply.huggingface.co>

Files changed (1) hide show
  1. geneformer/mtl/data.py +1 -1
geneformer/mtl/data.py CHANGED
@@ -112,7 +112,7 @@ def preload_and_process_data(config):
112
  # Validate that the mappings match
113
  validate_label_mappings(config)
114
 
115
- return (*train_data, *val_data[:2]) # Return train and val data along with mappings
116
 
117
 
118
  def validate_label_mappings(config):
 
112
  # Validate that the mappings match
113
  validate_label_mappings(config)
114
 
115
+ return (*train_data[:2], *val_data) # Return train and val data along with mappings
116
 
117
 
118
  def validate_label_mappings(config):