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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/*
* Windmill API
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.798.1
* Contact: contact@windmill.dev
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
/// ScorerMean : A column's summary. There is no single number for a dataset: averaging a judge with an exact match would invent one.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ScorerMean {
#[serde(rename = "scorer_id")]
pub scorer_id: String,
#[serde(rename = "mean", skip_serializing_if = "Option::is_none")]
pub mean: Option<f64>,
#[serde(rename = "baseline_mean", skip_serializing_if = "Option::is_none")]
pub baseline_mean: Option<f64>,
/// The share of scored cells that passed, for a column with a threshold. Reported beside the mean rather than instead of it: a pass rate says how many cases are good enough, a mean says by how much, and neither answers the other's question.
#[serde(rename = "pass_rate", skip_serializing_if = "Option::is_none")]
pub pass_rate: Option<f64>,
#[serde(rename = "baseline_pass_rate", skip_serializing_if = "Option::is_none")]
pub baseline_pass_rate: Option<f64>,
#[serde(rename = "scored")]
pub scored: i32,
/// Cells the baseline has no score for, so a column the baseline never ran shows as unscored rather than as a spurious difference.
#[serde(rename = "missing_in_baseline")]
pub missing_in_baseline: i32,
#[serde(rename = "definition_changed")]
pub definition_changed: bool,
}
impl ScorerMean {
/// A column's summary. There is no single number for a dataset: averaging a judge with an exact match would invent one.
pub fn new(scorer_id: String, scored: i32, missing_in_baseline: i32, definition_changed: bool) -> ScorerMean {
ScorerMean {
scorer_id,
mean: None,
baseline_mean: None,
pass_rate: None,
baseline_pass_rate: None,
scored,
missing_in_baseline,
definition_changed,
}
}
}