elo: min arena depth offset

This commit is contained in:
Simon Gardling 2025-03-04 16:29:51 -05:00
parent 013f81cd79
commit f73e781063
Signed by: titaniumtown
GPG Key ID: 9AB28AC10ECE533D

View File

@ -25,7 +25,7 @@ pub fn run() {
children_eval_method: ChildrenEvalMethod::Average,
};
let configs = (1..=6)
let configs = (4..=6)
.map(move |d| FutureMoveConfig {
max_depth: d,
..FMV_BASE
@ -51,6 +51,23 @@ pub fn run() {
..prev_c
})
.to_vec()
})
.flat_map(move |prev_c| {
if prev_c.do_not_prune {
// do not bother making configs where do_not_prune is true
// as top_k_children does nothing when pruning is skipped
return vec![prev_c];
}
// different values of top_k_children
[1, 2, 3]
.into_iter()
.filter(|&x| x <= prev_c.max_depth)
.map(move |ad_offset| FutureMoveConfig {
min_arena_depth: prev_c.max_depth - ad_offset,
..prev_c
})
.collect()
});
let vec: Vec<(String, Box<dyn Fn(Piece) -> Box<dyn Agent>>)> = configs