elo changes

This commit is contained in:
Simon Gardling 2025-03-06 14:12:09 -05:00
parent 33520c200c
commit 52ad7ba53d
Signed by: titaniumtown
GPG Key ID: 9AB28AC10ECE533D

View File

@ -29,7 +29,8 @@ pub fn run() {
children_eval_method: ChildrenEvalMethod::Average,
};
let configs = (6..=7)
let configs = [4, 6, 8]
.into_iter()
.map(move |d| FutureMoveConfig {
max_depth: d,
..FMV_BASE
@ -38,6 +39,13 @@ pub fn run() {
// create children which enable, and disable pruning
[true, false].map(move |do_prune| FutureMoveConfig { do_prune, ..prev_c })
})
.filter(move |move_c| {
if move_c.do_prune {
move_c.max_depth >= 8
} else {
move_c.max_depth < 8
}
})
.flat_map(move |prev_c| {
if !prev_c.do_prune {
// do not bother making configs when pruning is disabled
@ -46,7 +54,7 @@ pub fn run() {
}
// different values of top_k_children
[1, 2]
[1, 2, 3]
.map(move |top_k_children| FutureMoveConfig {
top_k_children,
..prev_c
@ -61,7 +69,7 @@ pub fn run() {
// different values to be subtracted from max_depth
// to become min_arena_depth
[prev_c.max_depth, 1, 3]
[1, 2, 3]
.into_iter()
.filter(|&x| x <= prev_c.max_depth)
.map(move |ad_offset| FutureMoveConfig {
@ -77,7 +85,7 @@ pub fn run() {
}
// different values of up_to_minus
[0, 2, 4]
[prev_c.max_depth, 1, 2, 3]
.into_iter()
.filter(|&x| x <= prev_c.max_depth)
.map(move |up_to_minus| FutureMoveConfig {
@ -169,11 +177,9 @@ impl PlayerArena {
std::thread::spawn(move || {
rayon::ThreadPoolBuilder::new()
.num_threads(
(std::thread::available_parallelism()
std::thread::available_parallelism()
.map(NonZero::get)
.expect("unable to get number of threads")
/ 5)
* 3,
.expect("unable to get number of threads"),
)
.build_global()
.unwrap();