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>
- 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
|
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):
|