Struct aws_sdk_machinelearning::operation::predict::PredictOutput
source · #[non_exhaustive]pub struct PredictOutput {
pub prediction: Option<Prediction>,
/* private fields */
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.prediction: Option<Prediction>The output from a Predict operation:
-
Details- Contains the following attributes:DetailsAttributes.PREDICTIVE_MODEL_TYPE - REGRESSION | BINARY | MULTICLASSDetailsAttributes.ALGORITHM - SGD -
PredictedLabel- Present for either aBINARYorMULTICLASSMLModelrequest. -
PredictedScores- Contains the raw classification score corresponding to each label. -
PredictedValue- Present for aREGRESSIONMLModelrequest.
Implementations§
source§impl PredictOutput
impl PredictOutput
sourcepub fn prediction(&self) -> Option<&Prediction>
pub fn prediction(&self) -> Option<&Prediction>
The output from a Predict operation:
-
Details- Contains the following attributes:DetailsAttributes.PREDICTIVE_MODEL_TYPE - REGRESSION | BINARY | MULTICLASSDetailsAttributes.ALGORITHM - SGD -
PredictedLabel- Present for either aBINARYorMULTICLASSMLModelrequest. -
PredictedScores- Contains the raw classification score corresponding to each label. -
PredictedValue- Present for aREGRESSIONMLModelrequest.
source§impl PredictOutput
impl PredictOutput
sourcepub fn builder() -> PredictOutputBuilder
pub fn builder() -> PredictOutputBuilder
Creates a new builder-style object to manufacture PredictOutput.
Trait Implementations§
source§impl Clone for PredictOutput
impl Clone for PredictOutput
source§fn clone(&self) -> PredictOutput
fn clone(&self) -> PredictOutput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for PredictOutput
impl Debug for PredictOutput
source§impl PartialEq<PredictOutput> for PredictOutput
impl PartialEq<PredictOutput> for PredictOutput
source§fn eq(&self, other: &PredictOutput) -> bool
fn eq(&self, other: &PredictOutput) -> bool
self and other values to be equal, and is used
by ==.source§impl RequestId for PredictOutput
impl RequestId for PredictOutput
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None if the service could not be reached.