#[non_exhaustive]pub struct PredictOutputBuilder { /* private fields */ }
Expand description
A builder for PredictOutput
.
Implementations§
source§impl PredictOutputBuilder
impl PredictOutputBuilder
sourcepub fn prediction(self, input: Prediction) -> Self
pub fn prediction(self, input: Prediction) -> Self
The output from a Predict
operation:
-
Details
- Contains the following attributes:DetailsAttributes.PREDICTIVE_MODEL_TYPE - REGRESSION | BINARY | MULTICLASS
DetailsAttributes.ALGORITHM - SGD
-
PredictedLabel
- Present for either aBINARY
orMULTICLASS
MLModel
request. -
PredictedScores
- Contains the raw classification score corresponding to each label. -
PredictedValue
- Present for aREGRESSION
MLModel
request.
sourcepub fn set_prediction(self, input: Option<Prediction>) -> Self
pub fn set_prediction(self, input: Option<Prediction>) -> Self
The output from a Predict
operation:
-
Details
- Contains the following attributes:DetailsAttributes.PREDICTIVE_MODEL_TYPE - REGRESSION | BINARY | MULTICLASS
DetailsAttributes.ALGORITHM - SGD
-
PredictedLabel
- Present for either aBINARY
orMULTICLASS
MLModel
request. -
PredictedScores
- Contains the raw classification score corresponding to each label. -
PredictedValue
- Present for aREGRESSION
MLModel
request.
sourcepub fn get_prediction(&self) -> &Option<Prediction>
pub fn get_prediction(&self) -> &Option<Prediction>
The output from a Predict
operation:
-
Details
- Contains the following attributes:DetailsAttributes.PREDICTIVE_MODEL_TYPE - REGRESSION | BINARY | MULTICLASS
DetailsAttributes.ALGORITHM - SGD
-
PredictedLabel
- Present for either aBINARY
orMULTICLASS
MLModel
request. -
PredictedScores
- Contains the raw classification score corresponding to each label. -
PredictedValue
- Present for aREGRESSION
MLModel
request.
sourcepub fn build(self) -> PredictOutput
pub fn build(self) -> PredictOutput
Consumes the builder and constructs a PredictOutput
.
Trait Implementations§
source§impl Clone for PredictOutputBuilder
impl Clone for PredictOutputBuilder
source§fn clone(&self) -> PredictOutputBuilder
fn clone(&self) -> PredictOutputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PredictOutputBuilder
impl Debug for PredictOutputBuilder
source§impl Default for PredictOutputBuilder
impl Default for PredictOutputBuilder
source§fn default() -> PredictOutputBuilder
fn default() -> PredictOutputBuilder
source§impl PartialEq for PredictOutputBuilder
impl PartialEq for PredictOutputBuilder
source§fn eq(&self, other: &PredictOutputBuilder) -> bool
fn eq(&self, other: &PredictOutputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for PredictOutputBuilder
Auto Trait Implementations§
impl Freeze for PredictOutputBuilder
impl RefUnwindSafe for PredictOutputBuilder
impl Send for PredictOutputBuilder
impl Sync for PredictOutputBuilder
impl Unpin for PredictOutputBuilder
impl UnwindSafe for PredictOutputBuilder
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