1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
use 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,
}
}
}