wip not yet

This commit is contained in:
Henri Bourcereau 2025-08-14 15:53:59 +02:00
parent 522f7470b2
commit bcc4b977c4
7 changed files with 482 additions and 288 deletions

View file

@ -13,14 +13,14 @@ PLOT_EXT="png"
train() {
cargo build --release --bin=$BINBOT
NAME="train_$(date +%Y-%m-%d_%H:%M:%S)"
NAME=$BINBOT"_$(date +%Y-%m-%d_%H:%M:%S)"
LOGS="$LOGS_DIR/$NAME.out"
mkdir -p "$LOGS_DIR"
LD_LIBRARY_PATH="$ROOT/target/release" "$ROOT/target/release/$BINBOT" | tee "$LOGS"
}
plot() {
NAME=$(ls -rt "$LOGS_DIR" | tail -n 1)
NAME=$(ls -rt "$LOGS_DIR" | grep $BINBOT | tail -n 1)
LOGS="$LOGS_DIR/$NAME"
cfgs=$(head -n $CFG_SIZE "$LOGS")
for cfg in $cfgs; do