#[non_exhaustive]pub struct WeightedQuantileLossBuilder { /* private fields */ }
Expand description
A builder for WeightedQuantileLoss
.
Implementations§
source§impl WeightedQuantileLossBuilder
impl WeightedQuantileLossBuilder
sourcepub fn quantile(self, input: f64) -> Self
pub fn quantile(self, input: f64) -> Self
The quantile. Quantiles divide a probability distribution into regions of equal probability. For example, if the distribution was divided into 5 regions of equal probability, the quantiles would be 0.2, 0.4, 0.6, and 0.8.
sourcepub fn set_quantile(self, input: Option<f64>) -> Self
pub fn set_quantile(self, input: Option<f64>) -> Self
The quantile. Quantiles divide a probability distribution into regions of equal probability. For example, if the distribution was divided into 5 regions of equal probability, the quantiles would be 0.2, 0.4, 0.6, and 0.8.
sourcepub fn get_quantile(&self) -> &Option<f64>
pub fn get_quantile(&self) -> &Option<f64>
The quantile. Quantiles divide a probability distribution into regions of equal probability. For example, if the distribution was divided into 5 regions of equal probability, the quantiles would be 0.2, 0.4, 0.6, and 0.8.
sourcepub fn loss_value(self, input: f64) -> Self
pub fn loss_value(self, input: f64) -> Self
The difference between the predicted value and the actual value over the quantile, weighted (normalized) by dividing by the sum over all quantiles.
sourcepub fn set_loss_value(self, input: Option<f64>) -> Self
pub fn set_loss_value(self, input: Option<f64>) -> Self
The difference between the predicted value and the actual value over the quantile, weighted (normalized) by dividing by the sum over all quantiles.
sourcepub fn get_loss_value(&self) -> &Option<f64>
pub fn get_loss_value(&self) -> &Option<f64>
The difference between the predicted value and the actual value over the quantile, weighted (normalized) by dividing by the sum over all quantiles.
sourcepub fn build(self) -> WeightedQuantileLoss
pub fn build(self) -> WeightedQuantileLoss
Consumes the builder and constructs a WeightedQuantileLoss
.
Trait Implementations§
source§impl Clone for WeightedQuantileLossBuilder
impl Clone for WeightedQuantileLossBuilder
source§fn clone(&self) -> WeightedQuantileLossBuilder
fn clone(&self) -> WeightedQuantileLossBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for WeightedQuantileLossBuilder
impl Debug for WeightedQuantileLossBuilder
source§impl Default for WeightedQuantileLossBuilder
impl Default for WeightedQuantileLossBuilder
source§fn default() -> WeightedQuantileLossBuilder
fn default() -> WeightedQuantileLossBuilder
source§impl PartialEq for WeightedQuantileLossBuilder
impl PartialEq for WeightedQuantileLossBuilder
source§fn eq(&self, other: &WeightedQuantileLossBuilder) -> bool
fn eq(&self, other: &WeightedQuantileLossBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for WeightedQuantileLossBuilder
Auto Trait Implementations§
impl Freeze for WeightedQuantileLossBuilder
impl RefUnwindSafe for WeightedQuantileLossBuilder
impl Send for WeightedQuantileLossBuilder
impl Sync for WeightedQuantileLossBuilder
impl Unpin for WeightedQuantileLossBuilder
impl UnwindSafe for WeightedQuantileLossBuilder
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§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>
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>
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