Download tasks/binding_lab/environment/methods/main/main.py from Tokenwave-AI/REE: direct link, hf CLI and curl.
- Browser
- Download file 331 Bytes
-
https://huggingface.co/datasets/Tokenwave-AI/REE/resolve/refs%2Fpr%2F1/tasks/binding_lab/environment/methods/main/main.py
- Command line
-
hf download hf://datasets/Tokenwave-AI/REE@refs/pr/1/tasks/binding_lab/environment/methods/main/main.py
-
curl -L -o main.py https://huggingface.co/datasets/Tokenwave-AI/REE/resolve/refs%2Fpr%2F1/tasks/binding_lab/environment/methods/main/main.py
331 Bytes
| import os,sys | |
| sys.path.insert(0,os.environ['CORE_DIR']) | |
| from interface.io import read_items,write_predictions | |
| from interface.geometry import count_pairs | |
| # A fixed local pair count. No parameters are fitted from responses. | |
| RADIUS=4.5 | |
| write_predictions(sys.argv[2],((r['id'],count_pairs(r,RADIUS)) for r in read_items(sys.argv[1]))) | |