Struct aws_sdk_machinelearning::types::builders::PredictionBuilder
source · #[non_exhaustive]pub struct PredictionBuilder { /* private fields */ }
Expand description
A builder for Prediction
.
Implementations§
source§impl PredictionBuilder
impl PredictionBuilder
sourcepub fn predicted_label(self, input: impl Into<String>) -> Self
pub fn predicted_label(self, input: impl Into<String>) -> Self
The prediction label for either a BINARY
or MULTICLASS
MLModel
.
sourcepub fn set_predicted_label(self, input: Option<String>) -> Self
pub fn set_predicted_label(self, input: Option<String>) -> Self
The prediction label for either a BINARY
or MULTICLASS
MLModel
.
sourcepub fn get_predicted_label(&self) -> &Option<String>
pub fn get_predicted_label(&self) -> &Option<String>
The prediction label for either a BINARY
or MULTICLASS
MLModel
.
sourcepub fn predicted_value(self, input: f32) -> Self
pub fn predicted_value(self, input: f32) -> Self
The prediction value for REGRESSION
MLModel
.
sourcepub fn set_predicted_value(self, input: Option<f32>) -> Self
pub fn set_predicted_value(self, input: Option<f32>) -> Self
The prediction value for REGRESSION
MLModel
.
sourcepub fn get_predicted_value(&self) -> &Option<f32>
pub fn get_predicted_value(&self) -> &Option<f32>
The prediction value for REGRESSION
MLModel
.
sourcepub fn predicted_scores(self, k: impl Into<String>, v: f32) -> Self
pub fn predicted_scores(self, k: impl Into<String>, v: f32) -> Self
Adds a key-value pair to predicted_scores
.
To override the contents of this collection use set_predicted_scores
.
Provides the raw classification score corresponding to each label.
sourcepub fn set_predicted_scores(self, input: Option<HashMap<String, f32>>) -> Self
pub fn set_predicted_scores(self, input: Option<HashMap<String, f32>>) -> Self
Provides the raw classification score corresponding to each label.
sourcepub fn get_predicted_scores(&self) -> &Option<HashMap<String, f32>>
pub fn get_predicted_scores(&self) -> &Option<HashMap<String, f32>>
Provides the raw classification score corresponding to each label.
sourcepub fn details(self, k: DetailsAttributes, v: impl Into<String>) -> Self
pub fn details(self, k: DetailsAttributes, v: impl Into<String>) -> Self
Adds a key-value pair to details
.
To override the contents of this collection use set_details
.
Provides any additional details regarding the prediction.
sourcepub fn set_details(
self,
input: Option<HashMap<DetailsAttributes, String>>
) -> Self
pub fn set_details( self, input: Option<HashMap<DetailsAttributes, String>> ) -> Self
Provides any additional details regarding the prediction.
sourcepub fn get_details(&self) -> &Option<HashMap<DetailsAttributes, String>>
pub fn get_details(&self) -> &Option<HashMap<DetailsAttributes, String>>
Provides any additional details regarding the prediction.
sourcepub fn build(self) -> Prediction
pub fn build(self) -> Prediction
Consumes the builder and constructs a Prediction
.
Trait Implementations§
source§impl Clone for PredictionBuilder
impl Clone for PredictionBuilder
source§fn clone(&self) -> PredictionBuilder
fn clone(&self) -> PredictionBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PredictionBuilder
impl Debug for PredictionBuilder
source§impl Default for PredictionBuilder
impl Default for PredictionBuilder
source§fn default() -> PredictionBuilder
fn default() -> PredictionBuilder
source§impl PartialEq for PredictionBuilder
impl PartialEq for PredictionBuilder
source§fn eq(&self, other: &PredictionBuilder) -> bool
fn eq(&self, other: &PredictionBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for PredictionBuilder
Auto Trait Implementations§
impl Freeze for PredictionBuilder
impl RefUnwindSafe for PredictionBuilder
impl Send for PredictionBuilder
impl Sync for PredictionBuilder
impl Unpin for PredictionBuilder
impl UnwindSafe for PredictionBuilder
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