Download annotations/annotation_13/test.sh from mcy98/RECODE-H: direct link, hf CLI and curl.
- Browser
- Download file 638 Bytes
-
https://huggingface.co/datasets/mcy98/RECODE-H/resolve/main/annotations/annotation_13/test.sh
- Command line
-
hf download hf://datasets/mcy98/RECODE-H/annotations/annotation_13/test.sh
-
curl -L -o test.sh https://huggingface.co/datasets/mcy98/RECODE-H/resolve/main/annotations/annotation_13/test.sh
638 Bytes
| eval "$(conda shell.bash hook)" | |
| conda activate test_common1 | |
| SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" | |
| # Define the target directory | |
| TARGET_DIR="${SCRIPT_DIR}/SISS" | |
| # Copy files to target directory | |
| cp "${SCRIPT_DIR}/canonical.py" "${TARGET_DIR}/losses/." | |
| cp "${SCRIPT_DIR}/test.py" "${TARGET_DIR}/losses/." | |
| # Change to target directory and run the script | |
| cd "${TARGET_DIR}/losses" || exit | |
| # python test.py | |
| pytest --timeout=10 test.py --junitxml="${SCRIPT_DIR}/pytest_report/report.xml" \ | |
| --cov="canonical" --cov-report=json:"${SCRIPT_DIR}/jsoncov" | |
| # Clean up copied files | |
| rm "canonical.py" | |
| rm "test.py" | |