From f6bf1b46c78ed1d4f232d62a428420e68ae21a13 Mon Sep 17 00:00:00 2001 From: dogeystamp Date: Sun, 29 Dec 2024 18:04:39 -0500 Subject: [PATCH] feat: nnue info now shows absolute eval --- src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 7675352..cfc47f2 100644 --- a/src/main.rs +++ b/src/main.rs @@ -374,7 +374,8 @@ fn task_engine(tx_main: Sender, rx_engine: Receiver) { let board_tensor = chess_inator::nnue::InputTensor::from_board(&board); - info.push(format!("NNUETrainInfo {} {}", is_quiet, {board_tensor})) + let abs_eval = EvalInt::from(eval) * EvalInt::from(board.get_turn().sign()); + info.push(format!("NNUETrainInfo {} {} {}", is_quiet, abs_eval, {board_tensor})) } tx_main