pub struct DaemonBuilder { /* private fields */ }Expand description
LearningDaemon のビルダー
Implementations§
Source§impl DaemonBuilder
impl DaemonBuilder
Sourcepub fn trigger(self, trigger: Arc<dyn TrainTrigger>) -> Self
pub fn trigger(self, trigger: Arc<dyn TrainTrigger>) -> Self
Trigger を設定
Sourcepub fn processor_mode(self, mode: ProcessorMode) -> Self
pub fn processor_mode(self, mode: ProcessorMode) -> Self
処理モードを設定
Sourcepub fn auto_apply(self) -> Self
pub fn auto_apply(self) -> Self
自動適用を有効化
Sourcepub fn record_store(self, store: Arc<dyn RecordStore>) -> Self
pub fn record_store(self, store: Arc<dyn RecordStore>) -> Self
RecordStore を設定
Sourcepub fn episode_store(self, store: Arc<dyn EpisodeStore>) -> Self
pub fn episode_store(self, store: Arc<dyn EpisodeStore>) -> Self
EpisodeStore を設定
Sourcepub fn learn_model(self, model: Arc<dyn LearnModel>) -> Self
pub fn learn_model(self, model: Arc<dyn LearnModel>) -> Self
LearnModel を設定
Sourcepub fn applicator(self, applicator: Arc<dyn ModelApplicator>) -> Self
pub fn applicator(self, applicator: Arc<dyn ModelApplicator>) -> Self
ModelApplicator を設定
Sourcepub fn with_lora(self, config: LoraTrainerConfig) -> Self
pub fn with_lora(self, config: LoraTrainerConfig) -> Self
LoRA 設定を追加
Sourcepub fn build(self) -> Result<LearningDaemon, DaemonError>
pub fn build(self) -> Result<LearningDaemon, DaemonError>
Daemon をビルド
Auto Trait Implementations§
impl Freeze for DaemonBuilder
impl !RefUnwindSafe for DaemonBuilder
impl Send for DaemonBuilder
impl Sync for DaemonBuilder
impl Unpin for DaemonBuilder
impl !UnwindSafe for DaemonBuilder
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