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 ==
.