[][src]Struct rusoto_machinelearning::Prediction

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.PREDICTIVEMODELTYPE - REGRESSION | BINARY | MULTICLASS DetailsAttributes.ALGORITHM - SGD

  • PredictedLabel - Present for either a BINARY or MULTICLASS MLModel request.

  • PredictedScores - Contains the raw classification score corresponding to each label.

  • PredictedValue - Present for a REGRESSION 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]

impl PartialEq<Prediction> for Prediction[src]

impl Clone for Prediction[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Prediction[src]

impl<'de> Deserialize<'de> for Prediction[src]

Auto Trait Implementations

impl Send for Prediction

impl Sync for Prediction

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> Erased for T

impl<T> Same for T

type Output = T

Should always be Self