do_not_prune -> do_prune
This commit is contained in:
15
src/elo.rs
15
src/elo.rs
@@ -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];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user