pub struct DaemonBuilder { /* private fields */ }Expand description
LearningDaemon のビルダー
Implementations§
Source§impl DaemonBuilder
impl DaemonBuilder
Sourcepub fn new(scenario: impl Into<String>) -> DaemonBuilder
pub fn new(scenario: impl Into<String>) -> DaemonBuilder
新しいビルダーを作成
Sourcepub fn data_dir(self, path: impl Into<PathBuf>) -> DaemonBuilder
pub fn data_dir(self, path: impl Into<PathBuf>) -> DaemonBuilder
データディレクトリを設定
Sourcepub fn trigger(self, trigger: Arc<dyn TrainTrigger>) -> DaemonBuilder
pub fn trigger(self, trigger: Arc<dyn TrainTrigger>) -> DaemonBuilder
Trigger を設定
Sourcepub fn processor_mode(self, mode: ProcessorMode) -> DaemonBuilder
pub fn processor_mode(self, mode: ProcessorMode) -> DaemonBuilder
処理モードを設定
Sourcepub fn auto_apply(self) -> DaemonBuilder
pub fn auto_apply(self) -> DaemonBuilder
自動適用を有効化
Sourcepub fn record_store(self, store: Arc<dyn RecordStore>) -> DaemonBuilder
pub fn record_store(self, store: Arc<dyn RecordStore>) -> DaemonBuilder
RecordStore を設定
Sourcepub fn episode_store(self, store: Arc<dyn EpisodeStore>) -> DaemonBuilder
pub fn episode_store(self, store: Arc<dyn EpisodeStore>) -> DaemonBuilder
EpisodeStore を設定
Sourcepub fn learn_model(self, model: Arc<dyn LearnModel>) -> DaemonBuilder
pub fn learn_model(self, model: Arc<dyn LearnModel>) -> DaemonBuilder
LearnModel を設定
Sourcepub fn applicator(self, applicator: Arc<dyn ModelApplicator>) -> DaemonBuilder
pub fn applicator(self, applicator: Arc<dyn ModelApplicator>) -> DaemonBuilder
ModelApplicator を設定
Sourcepub fn with_lora(self, config: LoraTrainerConfig) -> DaemonBuilder
pub fn with_lora(self, config: LoraTrainerConfig) -> DaemonBuilder
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