pub struct RegressionMetricReport {
pub prediction_id: Option<String>,
pub producer_node: NodeId,
pub variant_id: Option<VariantId>,
pub variant_label: Option<String>,
pub partition: PredictionPartition,
pub fold_id: Option<FoldId>,
pub level: PredictionLevel,
pub row_count: usize,
pub target_width: usize,
pub target_names: Vec<String>,
pub metrics: BTreeMap<String, f64>,
}Fields§
§prediction_id: Option<String>§producer_node: NodeId§variant_id: Option<VariantId>Variant this score belongs to — distinguishes per-variant candidates when a generated campaign scores several variants, so native SELECT can pick the best. Skipped (None) for single-variant runs, so existing fixtures/fingerprints are byte-identical.
variant_label: Option<String>Cross-language CONTENT fingerprint (hex sha256) of the operator-variant this score belongs to:
the canonical form of the variant’s LOWERED operator sub-sequence (Phase 5). The nirs4all host
recomputes the SAME bytes from its own operator-choice config, so it can map a per-variant
dag-ml report back to the config that produced it (replacing a brittle positional zip). Set
only for operator-SELECT reports (the choice fingerprint from OperatorVariantModel’s
variant_labels); skipped (None) for param-variant / single-variant runs, so existing
fixtures/fingerprints stay byte-identical.
partition: PredictionPartition§fold_id: Option<FoldId>§level: PredictionLevel§row_count: usize§target_width: usize§target_names: Vec<String>§metrics: BTreeMap<String, f64>Implementations§
Source§impl RegressionMetricReport
impl RegressionMetricReport
pub fn validate(&self) -> Result<(), DagMlError>
pub fn into_candidate_score( self, candidate_id: impl Into<String>, ) -> Result<CandidateScore, DagMlError>
Trait Implementations§
Source§impl Clone for RegressionMetricReport
impl Clone for RegressionMetricReport
Source§fn clone(&self) -> RegressionMetricReport
fn clone(&self) -> RegressionMetricReport
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RegressionMetricReport
impl Debug for RegressionMetricReport
Source§impl<'de> Deserialize<'de> for RegressionMetricReport
impl<'de> Deserialize<'de> for RegressionMetricReport
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<RegressionMetricReport, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<RegressionMetricReport, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for RegressionMetricReport
impl PartialEq for RegressionMetricReport
Source§fn eq(&self, other: &RegressionMetricReport) -> bool
fn eq(&self, other: &RegressionMetricReport) -> bool
self and other values to be equal, and is used by ==.