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<CalibrationParams, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CalibrationParams, <__D as Deserializer<'de>>::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
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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§
§impl<T> AnySync for T
impl<T> AnySync for T
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> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
§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>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§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].§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<T> ServiceExt for T
impl<T> ServiceExt for T
§fn map_response_body<F>(self, f: F) -> MapResponseBody<Self, F>where
Self: Sized,
fn map_response_body<F>(self, f: F) -> MapResponseBody<Self, F>where
Self: Sized,
Apply a transformation to the response body. Read more
§fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
High level tracing that classifies responses using HTTP status codes. Read more
§fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
High level tracing that classifies responses using gRPC headers. Read more