pub struct AdvancedPatternRecognizer { /* private fields */ }Expand description
Advanced pattern recognition system for chess positions
Implementations§
Source§impl AdvancedPatternRecognizer
impl AdvancedPatternRecognizer
Sourcepub fn analyze_patterns(&self, board: &Board) -> Result<PatternAnalysisResult>
pub fn analyze_patterns(&self, board: &Board) -> Result<PatternAnalysisResult>
Analyze all patterns in a position
Sourcepub fn encode_patterns(&self, board: &Board) -> Result<Array1<f32>>
pub fn encode_patterns(&self, board: &Board) -> Result<Array1<f32>>
Compute vector representation of patterns
Sourcepub fn train_patterns(&self, training_data: &[(Board, f32)]) -> Result<()>
pub fn train_patterns(&self, training_data: &[(Board, f32)]) -> Result<()>
Train the pattern recognizer with position-evaluation pairs
Sourcepub fn get_statistics(&self) -> PatternRecognitionStats
pub fn get_statistics(&self) -> PatternRecognitionStats
Get pattern recognition statistics
Trait Implementations§
Source§impl Default for AdvancedPatternRecognizer
impl Default for AdvancedPatternRecognizer
Source§impl PatternEvaluator for AdvancedPatternRecognizer
impl PatternEvaluator for AdvancedPatternRecognizer
fn evaluate_position(&self, board: &Board) -> Result<EvaluationComponent>
Auto Trait Implementations§
impl Freeze for AdvancedPatternRecognizer
impl RefUnwindSafe for AdvancedPatternRecognizer
impl Send for AdvancedPatternRecognizer
impl Sync for AdvancedPatternRecognizer
impl Unpin for AdvancedPatternRecognizer
impl UnwindSafe for AdvancedPatternRecognizer
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