Struct aws_sdk_machinelearning::model::Prediction
source · #[non_exhaustive]pub struct Prediction { /* private fields */ }Expand description
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 Prediction
impl Prediction
sourcepub fn predicted_label(&self) -> Option<&str>
pub fn predicted_label(&self) -> Option<&str>
The prediction label for either a BINARY or MULTICLASS MLModel.
sourcepub fn predicted_value(&self) -> Option<f32>
pub fn predicted_value(&self) -> Option<f32>
The prediction value for REGRESSION MLModel.
source§impl Prediction
impl Prediction
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture Prediction.
Trait Implementations§
source§impl Clone for Prediction
impl Clone for Prediction
source§fn clone(&self) -> Prediction
fn clone(&self) -> Prediction
Returns a copy of the value. Read more
1.0.0 · 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 Prediction
impl Debug for Prediction
source§impl PartialEq<Prediction> for Prediction
impl PartialEq<Prediction> for Prediction
source§fn eq(&self, other: &Prediction) -> bool
fn eq(&self, other: &Prediction) -> bool
This method tests for
self and other values to be equal, and is used
by ==.