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.impl StructuralPartialEq for PredictOutput
Auto Trait Implementations§
impl Freeze for PredictOutput
impl RefUnwindSafe for PredictOutput
impl Send for PredictOutput
impl Sync for PredictOutput
impl Unpin for PredictOutput
impl UnwindSafe for PredictOutput
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more