pub struct LichessLoader { /* private fields */ }Expand description
High-performance Lichess puzzle database loader
Implementations§
Source§impl LichessLoader
impl LichessLoader
Create a premium loader with optimized settings
Sourcepub fn with_rating_range(self, min: u32, max: u32) -> Self
pub fn with_rating_range(self, min: u32, max: u32) -> Self
Set rating range filter
Sourcepub fn with_themes(self, themes: Vec<String>) -> Self
pub fn with_themes(self, themes: Vec<String>) -> Self
Set theme filter
Sourcepub fn with_batch_size(self, size: usize) -> Self
pub fn with_batch_size(self, size: usize) -> Self
Set batch size for memory control
Sourcepub fn load_parallel<P: AsRef<Path>>(
&self,
csv_path: P,
) -> Result<Vec<TrainingData>, Box<dyn Error>>
pub fn load_parallel<P: AsRef<Path>>( &self, csv_path: P, ) -> Result<Vec<TrainingData>, Box<dyn Error>>
Load training data from Lichess puzzle CSV with lightning speed
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LichessLoader
impl RefUnwindSafe for LichessLoader
impl Send for LichessLoader
impl Sync for LichessLoader
impl Unpin for LichessLoader
impl UnwindSafe for LichessLoader
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