gcp_bigquery_client/model/
training_run.rsuse crate::model::data_split_result::DataSplitResult;
use crate::model::evaluation_metrics::EvaluationMetrics;
use crate::model::global_explanation::GlobalExplanation;
use crate::model::iteration_result::IterationResult;
use crate::model::training_options::TrainingOptions;
use time::OffsetDateTime;
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct TrainingRun {
pub evaluation_metrics: Option<EvaluationMetrics>,
#[serde(with = "time::serde::rfc3339")]
pub start_time: OffsetDateTime,
pub data_split_result: Option<DataSplitResult>,
pub training_options: Option<TrainingOptions>,
pub global_explanations: Option<Vec<GlobalExplanation>>,
pub results: Option<Vec<IterationResult>>,
}
impl Default for TrainingRun {
fn default() -> Self {
Self {
evaluation_metrics: None,
start_time: OffsetDateTime::now_utc(),
data_split_result: None,
training_options: None,
global_explanations: None,
results: None,
}
}
}