| set -euo pipefail | |
| echo "======================================================" | |
| echo " Adversarial Attack Evaluation - Quantum Decoder" | |
| echo "======================================================" | |
| PYTHON="${PYTHON:-python3}" | |
| VENV_DIR="${VENV_DIR:-.venv}" | |
| if [ ! -d "$VENV_DIR" ]; then | |
| echo "[1/3] Creating virtual environment..." | |
| $PYTHON -m venv "$VENV_DIR" | |
| fi | |
| source "$VENV_DIR/bin/activate" | |
| echo "[2/3] Installing dependencies..." | |
| pip install --upgrade pip setuptools wheel -q | |
| pip install torch numpy -q | |
| echo " torch: $(python -c 'import torch; print(torch.__version__)')" | |
| echo " numpy: $(python -c 'import numpy; print(numpy.__version__)')" | |
| echo "[3/3] Running adversarial attack evaluation..." | |
| python adversarial_attack.py | |
| echo "" | |
| echo "======================================================" | |
| echo " Results saved to outputs/adversarial_results.json" | |
| echo " Models saved to outputs/baseline_decoder.pt" | |
| echo " outputs/hardened_decoder.pt" | |
| echo "======================================================" |
Xet Storage Details
- Size:
- 1.07 kB
- Xet hash:
- 7dd77960ce3e212f74d7707d45cc7c7454da1a0f9ecccab7b85b68e61b11c653
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.