pub struct TrainerOptions {
pub algorithm: SolverAlgorithm,
pub schedule: UpdateSchedule,
pub abstraction: CardAbstraction,
}Expand description
How a Trainer learns: the update rule, the update order, and card abstraction.
The default is DCFR with simultaneous updates and every street solved exactly.
Fields§
§algorithm: SolverAlgorithmThe regret and strategy-averaging rule.
schedule: UpdateScheduleWhether both players update together or in alternation.
abstraction: CardAbstractionWhich streets are bucketed, and into how many buckets.
Trait Implementations§
Source§impl Clone for TrainerOptions
impl Clone for TrainerOptions
impl Copy for TrainerOptions
Source§impl Debug for TrainerOptions
impl Debug for TrainerOptions
Source§impl Default for TrainerOptions
impl Default for TrainerOptions
impl Eq for TrainerOptions
Source§impl Hash for TrainerOptions
impl Hash for TrainerOptions
Source§impl PartialEq for TrainerOptions
impl PartialEq for TrainerOptions
impl StructuralPartialEq for TrainerOptions
Auto Trait Implementations§
impl Forget for TrainerOptions
impl Freeze for TrainerOptions
impl Move for TrainerOptions
impl RefUnwindSafe for TrainerOptions
impl Send for TrainerOptions
impl Sync for TrainerOptions
impl Unpin for TrainerOptions
impl UnsafeUnpin for TrainerOptions
impl UnwindSafe for TrainerOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more