Spaces:
Runtime error
Runtime error
Download scripts/run_pipeline.sh from nishu08/sql-error-classifier-train: direct link, hf CLI and curl.
- Browser
- Download file 381 Bytes
-
https://huggingface.co/spaces/nishu08/sql-error-classifier-train/resolve/main/scripts/run_pipeline.sh
- Command line
-
hf download hf://spaces/nishu08/sql-error-classifier-train/scripts/run_pipeline.sh
-
curl -L -o run_pipeline.sh https://huggingface.co/spaces/nishu08/sql-error-classifier-train/resolve/main/scripts/run_pipeline.sh
381 Bytes
| set -euo pipefail | |
| SAMPLES="${1:-1000000}" | |
| WORKERS="${2:-8}" | |
| echo "==> Generating ${SAMPLES} labeled SQL samples..." | |
| python -m src.generate_dataset --samples "${SAMPLES}" --workers "${WORKERS}" | |
| echo "==> Training classifier..." | |
| python -m src.train | |
| echo "==> Evaluating..." | |
| python -m src.evaluate | |
| echo "==> Done. Model at models/sql_error_classifier.joblib" | |