elo: more configs

This commit is contained in:
2025-03-06 12:09:22 -05:00
parent a84272a7ce
commit cf1ff3e82d

View File

@@ -46,7 +46,7 @@ pub fn run() {
} }
// different values of top_k_children // different values of top_k_children
[1, 2, 3] [1, 2]
.map(move |top_k_children| FutureMoveConfig { .map(move |top_k_children| FutureMoveConfig {
top_k_children, top_k_children,
..prev_c ..prev_c
@@ -56,12 +56,12 @@ pub fn run() {
.flat_map(move |prev_c| { .flat_map(move |prev_c| {
if !prev_c.do_prune { if !prev_c.do_prune {
// do not bother making configs when pruning is disabled // do not bother making configs when pruning is disabled
// as top_k_children does nothing when pruning is skipped
return vec![prev_c]; return vec![prev_c];
} }
// different values of top_k_children // different values to be subtracted from max_depth
[1, 2, 3] // to become min_arena_depth
[prev_c.max_depth, 1, 3]
.into_iter() .into_iter()
.filter(|&x| x <= prev_c.max_depth) .filter(|&x| x <= prev_c.max_depth)
.map(move |ad_offset| FutureMoveConfig { .map(move |ad_offset| FutureMoveConfig {
@@ -69,6 +69,22 @@ pub fn run() {
..prev_c ..prev_c
}) })
.collect() .collect()
})
.flat_map(move |prev_c| {
if !prev_c.do_prune {
// do not bother making configs when pruning is disabled
return vec![prev_c];
}
// different values of up_to_minus
[0, 2, 4]
.into_iter()
.filter(|&x| x <= prev_c.max_depth)
.map(move |up_to_minus| FutureMoveConfig {
up_to_minus,
..prev_c
})
.collect()
}); });
let vec: Vec<(String, Box<dyn Fn(Piece) -> Box<dyn Agent>>)> = configs let vec: Vec<(String, Box<dyn Fn(Piece) -> Box<dyn Agent>>)> = configs