Initial commit: photonAI MZM MLP baseline only
Made-with: Cursor
This commit is contained in:
5
scripts/eval.sh
Executable file
5
scripts/eval.sh
Executable file
@@ -0,0 +1,5 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
||||
cd "$ROOT"
|
||||
python -m src.main eval --config configs/default.yaml "$@"
|
||||
9
scripts/infer.sh
Executable file
9
scripts/infer.sh
Executable file
@@ -0,0 +1,9 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
||||
cd "$ROOT"
|
||||
if [[ $# -lt 1 ]]; then
|
||||
echo "用法: $0 <input.csv|txt> [--run-dir path] [--output path]" >&2
|
||||
exit 1
|
||||
fi
|
||||
python -m src.main infer --config configs/default.yaml --input "$1" "${@:2}"
|
||||
5
scripts/train.sh
Executable file
5
scripts/train.sh
Executable file
@@ -0,0 +1,5 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
||||
cd "$ROOT"
|
||||
python -m src.main train --config configs/default.yaml
|
||||
Reference in New Issue
Block a user