pub struct CalibratedEvaluator { /* private fields */ }Expand description
Main calibrated evaluator (Dependency Inversion Principle)
Implementations§
Source§impl CalibratedEvaluator
impl CalibratedEvaluator
pub fn new(config: CalibrationConfig) -> Self
Sourcepub fn add_component(&mut self, component: Box<dyn EvaluationComponent>)
pub fn add_component(&mut self, component: Box<dyn EvaluationComponent>)
Add custom evaluation component (Open/Closed Principle)
Sourcepub fn evaluate_centipawns(&self, board: &Board) -> i32
pub fn evaluate_centipawns(&self, board: &Board) -> i32
Evaluate position in centipawns
Sourcepub fn evaluate_detailed(&self, board: &Board) -> EvaluationBreakdown
pub fn evaluate_detailed(&self, board: &Board) -> EvaluationBreakdown
Get detailed evaluation breakdown
Sourcepub fn calibrate_pattern_evaluation(&self, pattern_eval: f32) -> i32
pub fn calibrate_pattern_evaluation(&self, pattern_eval: f32) -> i32
Convert raw pattern evaluation to calibrated centipawns
Auto Trait Implementations§
impl Freeze for CalibratedEvaluator
impl !RefUnwindSafe for CalibratedEvaluator
impl !Send for CalibratedEvaluator
impl !Sync for CalibratedEvaluator
impl Unpin for CalibratedEvaluator
impl !UnwindSafe for CalibratedEvaluator
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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