[][src]Struct gcp_client::google::cloud::automl::v1beta1::PredictRequest

pub struct PredictRequest {
    pub name: String,
    pub payload: Option<ExamplePayload>,
    pub params: HashMap<String, String>,
}

Request message for [PredictionService.Predict][google.cloud.automl.v1beta1.PredictionService.Predict].

Fields

name: String

Required. Name of the model requested to serve the prediction.

payload: Option<ExamplePayload>

Required. Payload to perform a prediction on. The payload must match the problem type that the model was trained to solve.

params: HashMap<String, String>

Additional domain-specific parameters, any string must be up to 25000 characters long.

  • For Image Classification:

    score_threshold - (float) A value from 0.0 to 1.0. When the model makes predictions for an image, it will only produce results that have at least this confidence score. The default is 0.5.

  • For Image Object Detection: score_threshold - (float) When Model detects objects on the image, it will only produce bounding boxes which have at least this confidence score. Value in 0 to 1 range, default is 0.5. max_bounding_box_count - (int64) No more than this number of bounding boxes will be returned in the response. Default is 100, the requested value may be limited by server.

  • For Tables: feature_importance - (boolean) Whether feature importance should be populated in the returned TablesAnnotation. The default is false.

Trait Implementations

impl Clone for PredictRequest[src]

impl Debug for PredictRequest[src]

impl Default for PredictRequest[src]

impl Message for PredictRequest[src]

impl PartialEq<PredictRequest> for PredictRequest[src]

impl StructuralPartialEq for PredictRequest[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

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

impl<T> IntoRequest<T> for T[src]

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

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> 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<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]