Spaces:
Sleeping
Sleeping
Download case-study-memory/Toxicity_Prediction/workspace/utils.py from AI4Research/scider: direct link, hf CLI and curl.
- Browser
- Download file 440 Bytes
-
https://huggingface.co/spaces/AI4Research/scider/resolve/main/case-study-memory/Toxicity_Prediction/workspace/utils.py
- Command line
-
hf download hf://spaces/AI4Research/scider/case-study-memory/Toxicity_Prediction/workspace/utils.py
-
curl -L -o utils.py https://huggingface.co/spaces/AI4Research/scider/resolve/main/case-study-memory/Toxicity_Prediction/workspace/utils.py
440 Bytes
| """Utility functions for mutagenicity pipeline.""" | |
| from pathlib import Path | |
| RANDOM_STATE = 42 | |
| WORKSPACE = Path(__file__).parent | |
| # Data paths | |
| def get_data_path() -> Path: | |
| """Return path to Mutagenicity CSV (handles alternate filenames).""" | |
| for name in ["Mutagenicity_N6512.csv", "Mutagenicity_N6512 2.csv"]: | |
| p = WORKSPACE / name | |
| if p.exists(): | |
| return p | |
| return WORKSPACE / "Mutagenicity_N6512.csv" | |