#[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 ==
.