pub struct AdvancedSelfLearningSystem {
pub quality_threshold: f32,
pub max_positions: usize,
pub pattern_confidence_threshold: f32,
pub games_per_iteration: usize,
pub improvement_threshold: f32,
pub learning_stats: LearningProgress,
}Expand description
Advanced Self-Learning System - Continuously improves position database through intelligent self-play This is the revolutionary part that makes your vector engine continuously evolve and improve
Fields§
§quality_threshold: f32Quality threshold for keeping positions (0.0 to 1.0)
max_positions: usizeMaximum positions to keep in memory (LRU eviction)
pattern_confidence_threshold: f32Confidence threshold for pattern matching
games_per_iteration: usizeNumber of games to play per learning iteration
improvement_threshold: f32Position evaluation improvement threshold
learning_stats: LearningProgressLearning progress tracking
Implementations§
Source§impl AdvancedSelfLearningSystem
impl AdvancedSelfLearningSystem
pub fn new(quality_threshold: f32, max_positions: usize) -> Self
pub fn new_with_config( quality_threshold: f32, max_positions: usize, games_per_iteration: usize, ) -> Self
Sourcepub fn save_progress<P: AsRef<Path>>(
&self,
path: P,
) -> Result<(), Box<dyn Error>>
pub fn save_progress<P: AsRef<Path>>( &self, path: P, ) -> Result<(), Box<dyn Error>>
Save learning progress to file for persistent training
Sourcepub fn load_progress<P: AsRef<Path>>(path: P) -> Result<Self, Box<dyn Error>>
pub fn load_progress<P: AsRef<Path>>(path: P) -> Result<Self, Box<dyn Error>>
Load learning progress from file to resume training
Sourcepub fn get_progress_report(&self) -> String
pub fn get_progress_report(&self) -> String
Get detailed progress report for testing against external engine
Sourcepub fn continuous_learning_iteration(
&mut self,
engine: &mut ChessVectorEngine,
) -> Result<LearningStats, Box<dyn Error>>
pub fn continuous_learning_iteration( &mut self, engine: &mut ChessVectorEngine, ) -> Result<LearningStats, Box<dyn Error>>
Main Learning Loop - The core of your self-improving engine
Trait Implementations§
Source§impl Clone for AdvancedSelfLearningSystem
impl Clone for AdvancedSelfLearningSystem
Source§fn clone(&self) -> AdvancedSelfLearningSystem
fn clone(&self) -> AdvancedSelfLearningSystem
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AdvancedSelfLearningSystem
impl Debug for AdvancedSelfLearningSystem
Source§impl Default for AdvancedSelfLearningSystem
impl Default for AdvancedSelfLearningSystem
Source§impl<'de> Deserialize<'de> for AdvancedSelfLearningSystem
impl<'de> Deserialize<'de> for AdvancedSelfLearningSystem
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for AdvancedSelfLearningSystem
impl RefUnwindSafe for AdvancedSelfLearningSystem
impl Send for AdvancedSelfLearningSystem
impl Sync for AdvancedSelfLearningSystem
impl Unpin for AdvancedSelfLearningSystem
impl UnwindSafe for AdvancedSelfLearningSystem
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> 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