Download scripts/make_splits.py from Hibbaan/Oncoct_v1: direct link, hf CLI and curl.
- Browser
- Download file 338 Bytes
-
https://huggingface.co/Hibbaan/Oncoct_v1/resolve/main/scripts/make_splits.py
- Command line
-
hf download hf://Hibbaan/Oncoct_v1/scripts/make_splits.py
-
curl -L -o make_splits.py https://huggingface.co/Hibbaan/Oncoct_v1/resolve/main/scripts/make_splits.py
338 Bytes
| #!/usr/bin/env python3 | |
| import argparse | |
| from oncoct.data import write_splits | |
| if __name__ == "__main__": | |
| p = argparse.ArgumentParser() | |
| p.add_argument("--input", required=True) | |
| p.add_argument("--out", required=True) | |
| p.add_argument("--seed", type=int, default=17) | |
| a = p.parse_args(); write_splits(a.input, a.out, a.seed) | |