ChildrenEvalMethod: add and switch to AverageDivDepth
This commit is contained in:
16
src/elo.rs
16
src/elo.rs
@@ -26,10 +26,10 @@ pub fn run() {
|
||||
max_arena_size: usize::MAX,
|
||||
do_prune: false,
|
||||
print: false,
|
||||
children_eval_method: ChildrenEvalMethod::Average,
|
||||
children_eval_method: ChildrenEvalMethod::AverageDivDepth,
|
||||
};
|
||||
|
||||
let configs = [4, 6, 8]
|
||||
let configs = [6]
|
||||
.into_iter()
|
||||
.map(move |d| FutureMoveConfig {
|
||||
max_depth: d,
|
||||
@@ -46,6 +46,16 @@ pub fn run() {
|
||||
move_c.max_depth < 8
|
||||
}
|
||||
})
|
||||
// .flat_map(move |prev_c| {
|
||||
// [
|
||||
// ChildrenEvalMethod::Average,
|
||||
// ChildrenEvalMethod::AverageDivDepth,
|
||||
// ]
|
||||
// .map(move |children_strat| FutureMoveConfig {
|
||||
// children_eval_method: children_strat,
|
||||
// ..prev_c
|
||||
// })
|
||||
// });
|
||||
.flat_map(move |prev_c| {
|
||||
if !prev_c.do_prune {
|
||||
// do not bother making configs when pruning is disabled
|
||||
@@ -107,7 +117,7 @@ pub fn run() {
|
||||
|
||||
let mut arena = PlayerArena::new(vec);
|
||||
|
||||
arena.prop_arena(5);
|
||||
arena.prop_arena(100);
|
||||
|
||||
println!("{}", arena);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user