pub struct EvaluationBlender { /* private fields */ }Expand description
Evaluation blender with dynamic weight computation and adaptive learning
Implementations§
Source§impl EvaluationBlender
impl EvaluationBlender
pub fn new() -> Self
Sourcepub fn with_base_weights(base_weights: BlendWeights) -> Self
pub fn with_base_weights(base_weights: BlendWeights) -> Self
Create a blender with custom base weights
Sourcepub fn set_adaptive_learning(&mut self, enabled: bool)
pub fn set_adaptive_learning(&mut self, enabled: bool)
Enable or disable adaptive learning
Sourcepub fn compute_blend_weights(
&self,
complexity_score: f32,
game_phase: &GamePhase,
evaluation_results: &EvaluationResults,
) -> BlendWeights
pub fn compute_blend_weights( &self, complexity_score: f32, game_phase: &GamePhase, evaluation_results: &EvaluationResults, ) -> BlendWeights
Compute dynamic blend weights based on position characteristics
Sourcepub fn update_performance_metrics(
&self,
weights: &BlendWeights,
complexity_score: f32,
game_phase: &GamePhase,
evaluation_accuracy: f32,
actual_result: Option<f32>,
)
pub fn update_performance_metrics( &self, weights: &BlendWeights, complexity_score: f32, game_phase: &GamePhase, evaluation_accuracy: f32, actual_result: Option<f32>, )
Update performance metrics based on evaluation accuracy
Sourcepub fn get_adaptive_stats(&self) -> AdaptiveLearningStats
pub fn get_adaptive_stats(&self) -> AdaptiveLearningStats
Get adaptive learning statistics
Sourcepub fn blend_evaluations(
&self,
evaluation_results: &EvaluationResults,
weights: &BlendWeights,
) -> f32
pub fn blend_evaluations( &self, evaluation_results: &EvaluationResults, weights: &BlendWeights, ) -> f32
Blend evaluations using the provided weights
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for EvaluationBlender
impl RefUnwindSafe for EvaluationBlender
impl Send for EvaluationBlender
impl Sync for EvaluationBlender
impl Unpin for EvaluationBlender
impl UnwindSafe for EvaluationBlender
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