pub struct TrainedModelDto {
pub id: String,
pub base_model: String,
pub adapter_path: String,
pub learn_model_name: String,
pub episode_ids: Vec<String>,
pub sample_count: usize,
pub created_at: u64,
pub metrics: Option<TrainingMetricsDto>,
}Expand description
TrainedModel の永続化用 DTO
Fields§
§id: Stringモデル ID
base_model: Stringベースモデル
adapter_path: Stringアダプタのパス
learn_model_name: String使用した LearnModel の名前
episode_ids: Vec<String>学習に使用した Episode の ID リスト
sample_count: usize学習データサンプル数
created_at: u64作成日時(Unix timestamp ms)
metrics: Option<TrainingMetricsDto>学習メトリクス
Implementations§
Source§impl TrainedModelDto
impl TrainedModelDto
Sourcepub fn to_model(&self) -> TrainedModel
pub fn to_model(&self) -> TrainedModel
DTO から TrainedModel に変換
Trait Implementations§
Source§impl Clone for TrainedModelDto
impl Clone for TrainedModelDto
Source§fn clone(&self) -> TrainedModelDto
fn clone(&self) -> TrainedModelDto
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TrainedModelDto
impl Debug for TrainedModelDto
Source§impl<'de> Deserialize<'de> for TrainedModelDto
impl<'de> Deserialize<'de> for TrainedModelDto
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&TrainedModel> for TrainedModelDto
impl From<&TrainedModel> for TrainedModelDto
Source§fn from(model: &TrainedModel) -> Self
fn from(model: &TrainedModel) -> Self
Converts to this type from the input type.
Source§impl From<&TrainedModelDto> for ModelMeta
impl From<&TrainedModelDto> for ModelMeta
Source§fn from(dto: &TrainedModelDto) -> Self
fn from(dto: &TrainedModelDto) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for TrainedModelDto
impl RefUnwindSafe for TrainedModelDto
impl Send for TrainedModelDto
impl Sync for TrainedModelDto
impl Unpin for TrainedModelDto
impl UnwindSafe for TrainedModelDto
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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