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>,
}Expand description
The output from a Predict operation:
-
Details- Contains the following attributes:DetailsAttributes.PREDICTIVEMODELTYPE - REGRESSION | BINARY | MULTICLASSDetailsAttributes.ALGORITHM - SGD -
PredictedLabel- Present for either aBINARYorMULTICLASSMLModelrequest. -
PredictedScores- Contains the raw classification score corresponding to each label. -
PredictedValue- Present for aREGRESSIONMLModelrequest.
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§
Source§impl Clone for Prediction
impl Clone for Prediction
Source§fn clone(&self) -> Prediction
fn clone(&self) -> Prediction
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Prediction
impl Debug for Prediction
Source§impl Default for Prediction
impl Default for Prediction
Source§fn default() -> Prediction
fn default() -> Prediction
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for Prediction
impl<'de> Deserialize<'de> for Prediction
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for Prediction
impl PartialEq for Prediction
impl StructuralPartialEq for Prediction
Auto Trait Implementations§
impl Freeze for Prediction
impl RefUnwindSafe for Prediction
impl Send for Prediction
impl Sync for Prediction
impl Unpin for Prediction
impl UnwindSafe for Prediction
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
Mutably borrows from an owned value. Read more