Struct aws_sdk_machinelearning::model::prediction::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for Prediction
.
Implementations§
source§impl Builder
impl Builder
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 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 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 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 build(self) -> Prediction
pub fn build(self) -> Prediction
Consumes the builder and constructs a Prediction
.