Struct aws_sdk_machinelearning::operation::predict::PredictOutput
source · #[non_exhaustive]pub struct PredictOutput { /* private fields */ }
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
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 PredictOutput
impl Debug for PredictOutput
source§impl PartialEq<PredictOutput> for PredictOutput
impl PartialEq<PredictOutput> for PredictOutput
source§fn eq(&self, other: &PredictOutput) -> bool
fn eq(&self, other: &PredictOutput) -> bool
This method tests for
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>
Returns the request ID, or
None
if the service could not be reached.impl StructuralPartialEq for PredictOutput
Auto Trait Implementations§
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
Mutably borrows from an owned value. Read more