Struct aws_sdk_machinelearning::model::Prediction [−][src]
#[non_exhaustive]pub struct Prediction {
pub predicted_label: Option<String>,
pub predicted_value: Option<f32>,
pub predicted_scores: Option<HashMap<String, f32>>,
pub details: Option<HashMap<DetailsAttributes, String>>,
}
Expand description
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.
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.predicted_label: Option<String>
The prediction label for either a BINARY
or MULTICLASS
MLModel
.
predicted_value: Option<f32>
The prediction value for REGRESSION
MLModel
.
predicted_scores: Option<HashMap<String, f32>>
Provides the raw classification score corresponding to each label.
details: Option<HashMap<DetailsAttributes, String>>
Provides any additional details regarding the prediction.
Implementations
The prediction label for either a BINARY
or MULTICLASS
MLModel
.
The prediction value for REGRESSION
MLModel
.
Provides the raw classification score corresponding to each label.
Creates a new builder-style object to manufacture Prediction
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for Prediction
impl Send for Prediction
impl Sync for Prediction
impl Unpin for Prediction
impl UnwindSafe for Prediction
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more