do_not_prune -> do_prune

This commit is contained in:
2025-03-05 14:06:03 -05:00
parent f2fd89b50f
commit e60e546f2f
4 changed files with 14 additions and 17 deletions

View File

@@ -20,7 +20,7 @@ pub fn run() {
top_k_children: 2,
up_to_minus: 10,
max_arena_size: usize::MAX,
do_not_prune: true,
do_prune: false,
print: false,
children_eval_method: ChildrenEvalMethod::Average,
};
@@ -32,14 +32,11 @@ pub fn run() {
})
.flat_map(move |prev_c| {
// create children which enable, and disable pruning
[true, false].map(move |do_not_prune| FutureMoveConfig {
do_not_prune,
..prev_c
})
[true, false].map(move |do_prune| FutureMoveConfig { do_prune, ..prev_c })
})
.flat_map(move |prev_c| {
if prev_c.do_not_prune {
// do not bother making configs where do_not_prune is true
if !prev_c.do_prune {
// do not bother making configs when pruning is disabled
// as top_k_children does nothing when pruning is skipped
return vec![prev_c];
}
@@ -53,8 +50,8 @@ pub fn run() {
.to_vec()
})
.flat_map(move |prev_c| {
if prev_c.do_not_prune {
// do not bother making configs where do_not_prune is true
if !prev_c.do_prune {
// do not bother making configs when pruning is disabled
// as top_k_children does nothing when pruning is skipped
return vec![prev_c];
}