pub trait ComponentLearner: Send + Sync {
type Output: LearnedComponent;
// Required methods
fn name(&self) -> &str;
fn objective(&self) -> &str;
fn learn(&self, episodes: &[Episode]) -> Result<Self::Output, LearnError>;
// Provided method
fn update(
&self,
existing: &Self::Output,
new_episodes: &[Episode],
) -> Result<Self::Output, LearnError> { ... }
}Expand description
ScenarioProfile コンポーネントの学習プロセス
Episode の集合から LearnedComponent を生成する。 LearnModel(LoRA用)とは異なり、ScenarioProfile の各コンポーネントを 型安全に学習する。
Required Associated Types§
Sourcetype Output: LearnedComponent
type Output: LearnedComponent
学習結果の型