pub struct CalibrationParams {
pub version: VersionTriple,
pub primitive: DecisionPrimitive,
pub temperature: Option<f64>,
pub null_bias: Option<Vec<f64>>,
pub dirichlet: Option<DirichletParams>,
pub conformal: Option<ConformalParams>,
pub cardinality: Option<i64>,
pub calib_set_id: String,
pub calib_size: Option<i64>,
pub objective: Option<String>,
pub fitted_at: i64,
}Expand description
One calibration parameter row.
Fields§
§version: VersionTriple(schema, model, calib) version triple — the primary key.
primitive: DecisionPrimitivePrimitive these parameters apply to.
temperature: Option<f64>Per-primitive temperature (softmax scale). None = identity.
null_bias: Option<Vec<f64>>Null-state (content-free input) bias vector, one entry per option/level.
dirichlet: Option<DirichletParams>Dirichlet-calibration params (choice only, high-cardinality).
conformal: Option<ConformalParams>Conformal parameters; the variant must match primitive.
cardinality: Option<i64>Option/level cardinality K at fit time.
calib_set_id: StringId of the calibration set the parameters were fit on.
calib_size: Option<i64>Number of examples in the calibration set.
objective: Option<String>Fitting objective, free-form (e.g. “nll”, “rps”, “brier”).
fitted_at: i64Fit time, Unix epoch milliseconds.
Implementations§
Trait Implementations§
Source§impl Clone for CalibrationParams
impl Clone for CalibrationParams
Source§fn clone(&self) -> CalibrationParams
fn clone(&self) -> CalibrationParams
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CalibrationParams
impl Debug for CalibrationParams
Source§impl<'de> Deserialize<'de> for CalibrationParams
impl<'de> Deserialize<'de> for CalibrationParams
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 PartialEq for CalibrationParams
impl PartialEq for CalibrationParams
Source§fn eq(&self, other: &CalibrationParams) -> bool
fn eq(&self, other: &CalibrationParams) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CalibrationParams
impl Serialize for CalibrationParams
impl StructuralPartialEq for CalibrationParams
Auto Trait Implementations§
impl Freeze for CalibrationParams
impl RefUnwindSafe for CalibrationParams
impl Send for CalibrationParams
impl Sync for CalibrationParams
impl Unpin for CalibrationParams
impl UnsafeUnpin for CalibrationParams
impl UnwindSafe for CalibrationParams
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Applies the layer to a service and wraps it in [
Layered].