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 | 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.
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 | 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.
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 for PredictOutput
impl PartialEq 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.