pub struct ModelTrainingContext<'a> {
pub tables: &'a dyn TrainingTables,
pub models: &'a dyn TrainedModels,
}Fields§
§tables: &'a dyn TrainingTables§models: &'a dyn TrainedModelsImplementations§
Source§impl ModelTrainingContext<'_>
impl ModelTrainingContext<'_>
pub fn train( &self, name: &str, training_set: &TrainingSet, options: &LearnOptions, ) -> Result<DeepLearnOutput, SQLError>
pub fn train_json( &self, name: &str, training_json: &str, options: &LearnOptions, ) -> Result<DeepLearnOutput, SQLError>
pub fn train_table( &self, name: &str, table: &str, options: &LearnOptions, ) -> Result<DeepLearnOutput, SQLError>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for ModelTrainingContext<'a>
impl<'a> !Send for ModelTrainingContext<'a>
impl<'a> !Sync for ModelTrainingContext<'a>
impl<'a> !UnwindSafe for ModelTrainingContext<'a>
impl<'a> Freeze for ModelTrainingContext<'a>
impl<'a> Unpin for ModelTrainingContext<'a>
impl<'a> UnsafeUnpin for ModelTrainingContext<'a>
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
impl<T> ErasedDestructor for Twhere
T: 'static,
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