Skip to content

Commit

Permalink
seems like avg reward performs better with our relatively low iter count
Browse files Browse the repository at this point in the history
  • Loading branch information
jackschu committed Oct 22, 2023
1 parent 7a0f4a4 commit 3c4ead3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bots/mcts_bot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,8 @@ impl<'a> ArenaTree<'a> {
.children
.iter()
.max_by(|l, r| {
let lv = self.arena[*l.to_owned()].data.visited;
let rv = self.arena[*r.to_owned()].data.visited;
let lv = self.arena[*l.to_owned()].data.average_reward();
let rv = self.arena[*r.to_owned()].data.average_reward();
lv.partial_cmp(&rv).unwrap()
})
.unwrap();
Expand Down

0 comments on commit 3c4ead3

Please sign in to comment.