2024-10-01 17:48:10 +02:00
|
|
|
#!/usr/bin/env -S just --justfile
|
|
|
|
|
# ^ A shebang isn't required, but allows a justfile to be executed
|
|
|
|
|
# like a script, with `./justfile test`, for example.
|
|
|
|
|
|
|
|
|
|
doc:
|
|
|
|
|
cargo doc --no-deps
|
2022-12-09 21:19:18 +01:00
|
|
|
shell:
|
2022-12-14 13:58:44 +01:00
|
|
|
devenv shell
|
2025-01-12 16:38:43 +01:00
|
|
|
runcli:
|
|
|
|
|
RUST_LOG=info cargo run --bin=client_cli
|
|
|
|
|
runclibots:
|
2025-08-18 17:44:01 +02:00
|
|
|
cargo run --bin=client_cli -- --bot random,dqnburn:./bot/models/burnrl_dqn_40.mpk
|
2025-08-10 15:32:41 +02:00
|
|
|
#cargo run --bin=client_cli -- --bot dqn:./bot/models/dqn_model_final.json,dummy
|
2025-08-04 18:04:40 +02:00
|
|
|
# RUST_LOG=info cargo run --bin=client_cli -- --bot dummy,dqn
|
2025-08-01 20:45:57 +02:00
|
|
|
match:
|
|
|
|
|
cargo build --release --bin=client_cli
|
|
|
|
|
LD_LIBRARY_PATH=./target/release ./target/release/client_cli -- --bot dummy,dqn
|
2025-02-08 08:52:01 +01:00
|
|
|
profile:
|
|
|
|
|
echo '1' | sudo tee /proc/sys/kernel/perf_event_paranoid
|
|
|
|
|
cargo build --profile profiling
|
|
|
|
|
samply record ./target/profiling/client_cli --bot dummy,dummy
|
2025-02-08 13:28:42 +01:00
|
|
|
pythonlib:
|
|
|
|
|
maturin build -m store/Cargo.toml --release
|
|
|
|
|
pip install --no-deps --force-reinstall --prefix .devenv/state/venv target/wheels/*.whl
|
2025-08-08 16:24:12 +02:00
|
|
|
trainsimple:
|
2025-08-08 18:58:21 +02:00
|
|
|
cargo build --release --bin=train_dqn_simple
|
|
|
|
|
LD_LIBRARY_PATH=./target/release ./target/release/train_dqn_simple | tee /tmp/train.out
|
2025-03-02 15:20:24 +01:00
|
|
|
trainbot:
|
2025-05-30 20:32:00 +02:00
|
|
|
#python ./store/python/trainModel.py
|
2025-06-29 11:30:34 +02:00
|
|
|
# cargo run --bin=train_dqn # ok
|
2025-08-12 21:56:52 +02:00
|
|
|
# ./bot/scripts/trainValid.sh
|
|
|
|
|
./bot/scripts/train.sh
|
2025-08-03 20:32:06 +02:00
|
|
|
plottrainbot:
|
2025-08-12 21:56:52 +02:00
|
|
|
./bot/scripts/train.sh plot
|
2025-07-28 09:22:33 +02:00
|
|
|
debugtrainbot:
|
|
|
|
|
cargo build --bin=train_dqn_burn
|
|
|
|
|
RUST_BACKTRACE=1 LD_LIBRARY_PATH=./target/debug ./target/debug/train_dqn_burn
|
|
|
|
|
profiletrainbot:
|
|
|
|
|
echo '1' | sudo tee /proc/sys/kernel/perf_event_paranoid
|
|
|
|
|
cargo build --profile profiling --bin=train_dqn_burn
|
2025-08-01 20:45:57 +02:00
|
|
|
LD_LIBRARY_PATH=./target/profiling samply record ./target/profiling/train_dqn_burn
|