Struct aws_sdk_machinelearning::types::Prediction
source · #[non_exhaustive]pub struct Prediction { /* private fields */ }
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.
Implementations§
source§impl 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
.
source§impl Prediction
impl Prediction
sourcepub fn builder() -> PredictionBuilder
pub fn builder() -> PredictionBuilder
Creates a new builder-style object to manufacture Prediction
.
Trait Implementations§
source§impl Clone for Prediction
impl Clone for Prediction
source§fn clone(&self) -> Prediction
fn clone(&self) -> Prediction
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 Prediction
impl Debug for Prediction
source§impl PartialEq<Prediction> for Prediction
impl PartialEq<Prediction> for Prediction
source§fn 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 ==
.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§
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