Struct rusoto_machinelearning::Prediction
[−]
[src]
pub struct Prediction { pub details: Option<HashMap<String, String>>, pub predicted_label: Option<String>, pub predicted_scores: Option<HashMap<String, f32>>, pub predicted_value: Option<f32>, }
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.
Fields
details: Option<HashMap<String, String>>
predicted_label: Option<String>
The prediction label for either a BINARY
or MULTICLASS
MLModel
.
predicted_scores: Option<HashMap<String, f32>>
predicted_value: Option<f32>
The prediction value for REGRESSION
MLModel
.
Trait Implementations
impl Default for Prediction
[src]
fn default() -> Prediction
Returns the "default value" for a type. Read more
impl Debug for Prediction
[src]
impl Clone for Prediction
[src]
fn clone(&self) -> Prediction
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more