From a0bc5d30403b7ead935db5863ae41906f1051e32 Mon Sep 17 00:00:00 2001 From: Rak Laptudirm Date: Wed, 5 Jun 2024 20:32:33 +0530 Subject: [PATCH] chore: on the double MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ╔══════════════════════════════════════════════════════════╗ ║ Name Elo Error Wins Loss Draw Total ║ ╠══════════════════════════════════════════════════════════╣ ║ 1. Mexx -198 100 10 34 1 45 ║ ║ 2. MexxMonty +198 100 34 10 1 45 ║ ╚══════════════════════════════════════════════════════════╝ --- src/mcts/graph.rs | 2 +- src/mcts/simulate.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mcts/graph.rs b/src/mcts/graph.rs index ceb6391..f4c9f61 100644 --- a/src/mcts/graph.rs +++ b/src/mcts/graph.rs @@ -11,7 +11,7 @@ pub struct Tree { impl Tree { pub fn new(position: ataxx::Position) -> Tree { let policy = policy::monty; - let simulator = simulate::material_count; + let simulator = simulate::monty; let mut root = Node::new(position, -1); root.expand(policy); diff --git a/src/mcts/simulate.rs b/src/mcts/simulate.rs index c3acbd3..cadbd1a 100644 --- a/src/mcts/simulate.rs +++ b/src/mcts/simulate.rs @@ -13,7 +13,7 @@ pub fn material_count(position: &ataxx::Position) -> f64 { 1.0 / (1.0 + f64::exp(-eval / 400.0)) } -pub fn monty_network(position: &ataxx::Position) -> f64 { +pub fn monty(position: &ataxx::Position) -> f64 { 1.0 / (1.0 + (-(NETS.0.eval(position) as f64) / 400.0).exp()) }