libZSservicesZSamazonka-mlZSamazonka-ml
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.MachineLearning.Predict

Description

Generates a prediction for the observation using the specified ML Model.

Note: Not all response parameters will be populated. Whether a response parameter is populated depends on the type of model requested.

Synopsis

Creating a Request

data Predict Source #

See: newPredict smart constructor.

Constructors

Predict' 

Fields

Instances

Instances details
Eq Predict Source # 
Instance details

Defined in Amazonka.MachineLearning.Predict

Methods

(==) :: Predict -> Predict -> Bool #

(/=) :: Predict -> Predict -> Bool #

Read Predict Source # 
Instance details

Defined in Amazonka.MachineLearning.Predict

Show Predict Source # 
Instance details

Defined in Amazonka.MachineLearning.Predict

Generic Predict Source # 
Instance details

Defined in Amazonka.MachineLearning.Predict

Associated Types

type Rep Predict :: Type -> Type #

Methods

from :: Predict -> Rep Predict x #

to :: Rep Predict x -> Predict #

NFData Predict Source # 
Instance details

Defined in Amazonka.MachineLearning.Predict

Methods

rnf :: Predict -> () #

Hashable Predict Source # 
Instance details

Defined in Amazonka.MachineLearning.Predict

Methods

hashWithSalt :: Int -> Predict -> Int #

hash :: Predict -> Int #

ToJSON Predict Source # 
Instance details

Defined in Amazonka.MachineLearning.Predict

AWSRequest Predict Source # 
Instance details

Defined in Amazonka.MachineLearning.Predict

Associated Types

type AWSResponse Predict #

ToHeaders Predict Source # 
Instance details

Defined in Amazonka.MachineLearning.Predict

Methods

toHeaders :: Predict -> [Header] #

ToPath Predict Source # 
Instance details

Defined in Amazonka.MachineLearning.Predict

Methods

toPath :: Predict -> ByteString #

ToQuery Predict Source # 
Instance details

Defined in Amazonka.MachineLearning.Predict

type Rep Predict Source # 
Instance details

Defined in Amazonka.MachineLearning.Predict

type Rep Predict = D1 ('MetaData "Predict" "Amazonka.MachineLearning.Predict" "libZSservicesZSamazonka-mlZSamazonka-ml" 'False) (C1 ('MetaCons "Predict'" 'PrefixI 'True) (S1 ('MetaSel ('Just "mLModelId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: (S1 ('MetaSel ('Just "record") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (HashMap Text Text)) :*: S1 ('MetaSel ('Just "predictEndpoint") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))
type AWSResponse Predict Source # 
Instance details

Defined in Amazonka.MachineLearning.Predict

newPredict Source #

Create a value of Predict with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:mLModelId:Predict', predict_mLModelId - A unique identifier of the MLModel.

$sel:record:Predict', predict_record - Undocumented member.

$sel:predictEndpoint:Predict', predict_predictEndpoint - Undocumented member.

Request Lenses

predict_mLModelId :: Lens' Predict Text Source #

A unique identifier of the MLModel.

predict_record :: Lens' Predict (HashMap Text Text) Source #

Undocumented member.

Destructuring the Response

data PredictResponse Source #

See: newPredictResponse smart constructor.

Constructors

PredictResponse' 

Fields

Instances

Instances details
Eq PredictResponse Source # 
Instance details

Defined in Amazonka.MachineLearning.Predict

Read PredictResponse Source # 
Instance details

Defined in Amazonka.MachineLearning.Predict

Show PredictResponse Source # 
Instance details

Defined in Amazonka.MachineLearning.Predict

Generic PredictResponse Source # 
Instance details

Defined in Amazonka.MachineLearning.Predict

Associated Types

type Rep PredictResponse :: Type -> Type #

NFData PredictResponse Source # 
Instance details

Defined in Amazonka.MachineLearning.Predict

Methods

rnf :: PredictResponse -> () #

type Rep PredictResponse Source # 
Instance details

Defined in Amazonka.MachineLearning.Predict

type Rep PredictResponse = D1 ('MetaData "PredictResponse" "Amazonka.MachineLearning.Predict" "libZSservicesZSamazonka-mlZSamazonka-ml" 'False) (C1 ('MetaCons "PredictResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "prediction") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Prediction)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newPredictResponse Source #

Create a value of PredictResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:prediction:PredictResponse', predictResponse_prediction - Undocumented member.

$sel:httpStatus:PredictResponse', predictResponse_httpStatus - The response's http status code.

Response Lenses

predictResponse_httpStatus :: Lens' PredictResponse Int Source #

The response's http status code.