Struct aws_sdk_machinelearning::model::Prediction
source · [−]#[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
sourceimpl 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
.
sourceimpl Prediction
impl Prediction
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture Prediction
Trait Implementations
sourceimpl Clone for Prediction
impl Clone for Prediction
sourcefn clone(&self) -> Prediction
fn clone(&self) -> Prediction
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for Prediction
impl Debug for Prediction
sourceimpl PartialEq<Prediction> for Prediction
impl PartialEq<Prediction> for Prediction
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &Prediction) -> bool
fn ne(&self, other: &Prediction) -> bool
This method tests for !=
.
impl StructuralPartialEq for Prediction
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more