Download code/test_loaders_s1.py from unknownBrain/survivalanalysis_checkpointing: direct link, hf CLI and curl.
- Browser
- Download file 400 Bytes
-
https://huggingface.co/datasets/unknownBrain/survivalanalysis_checkpointing/resolve/main/code/test_loaders_s1.py
- Command line
-
hf download hf://datasets/unknownBrain/survivalanalysis_checkpointing/code/test_loaders_s1.py
-
curl -L -o test_loaders_s1.py https://huggingface.co/datasets/unknownBrain/survivalanalysis_checkpointing/resolve/main/code/test_loaders_s1.py
400 Bytes
| import sys | |
| sys.path.append('.') | |
| from dataLoder.loader_S1 import get_fold_data, split_path_by_label | |
| pkl_paths = ['./1p19q.pkl', './IDH.pkl', './LHG.pkl'] | |
| for p in pkl_paths: | |
| for fold in range(5): | |
| file_paths, file_labels = get_fold_data(fold, 'train', p) | |
| p0, p1 = split_path_by_label(file_paths, file_labels) | |
| print(f"{p} fold {fold}: len(p0)={len(p0)}, len(p1)={len(p1)}") | |