amazonka-ml-1.4.3: Amazon Machine Learning SDK.

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

Network.AWS.MachineLearning.Predict

Contents

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

predict Source #

Creates a value of Predict with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data Predict Source #

See: predict smart constructor.

Instances

Eq Predict Source # 

Methods

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

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

Data Predict Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Predict -> c Predict #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Predict #

toConstr :: Predict -> Constr #

dataTypeOf :: Predict -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c Predict) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Predict) #

gmapT :: (forall b. Data b => b -> b) -> Predict -> Predict #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Predict -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Predict -> r #

gmapQ :: (forall d. Data d => d -> u) -> Predict -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> Predict -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> Predict -> m Predict #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Predict -> m Predict #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Predict -> m Predict #

Read Predict Source # 
Show Predict Source # 
Generic Predict Source # 

Associated Types

type Rep Predict :: * -> * #

Methods

from :: Predict -> Rep Predict x #

to :: Rep Predict x -> Predict #

ToJSON Predict Source # 
Hashable Predict Source # 

Methods

hashWithSalt :: Int -> Predict -> Int #

hash :: Predict -> Int #

NFData Predict Source # 

Methods

rnf :: Predict -> () #

AWSRequest Predict Source # 

Associated Types

type Rs Predict :: * #

ToPath Predict Source # 

Methods

toPath :: Predict -> ByteString #

ToHeaders Predict Source # 

Methods

toHeaders :: Predict -> [Header] #

ToQuery Predict Source # 
type Rep Predict Source # 
type Rep Predict = D1 (MetaData "Predict" "Network.AWS.MachineLearning.Predict" "amazonka-ml-1.4.3-DbYWzKGDN8K1aNJlQiNb67" False) (C1 (MetaCons "Predict'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_pMLModelId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) ((:*:) (S1 (MetaSel (Just Symbol "_pRecord") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Map Text Text))) (S1 (MetaSel (Just Symbol "_pPredictEndpoint") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Rs Predict Source # 

Request Lenses

pMLModelId :: Lens' Predict Text Source #

A unique identifier of the MLModel.

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

Undocumented member.

pPredictEndpoint :: Lens' Predict Text Source #

Undocumented member.

Destructuring the Response

predictResponse Source #

Creates a value of PredictResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data PredictResponse Source #

See: predictResponse smart constructor.

Instances

Eq PredictResponse Source # 
Data PredictResponse Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> PredictResponse -> c PredictResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c PredictResponse #

toConstr :: PredictResponse -> Constr #

dataTypeOf :: PredictResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c PredictResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c PredictResponse) #

gmapT :: (forall b. Data b => b -> b) -> PredictResponse -> PredictResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> PredictResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> PredictResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> PredictResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> PredictResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> PredictResponse -> m PredictResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> PredictResponse -> m PredictResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> PredictResponse -> m PredictResponse #

Read PredictResponse Source # 
Show PredictResponse Source # 
Generic PredictResponse Source # 
NFData PredictResponse Source # 

Methods

rnf :: PredictResponse -> () #

type Rep PredictResponse Source # 
type Rep PredictResponse = D1 (MetaData "PredictResponse" "Network.AWS.MachineLearning.Predict" "amazonka-ml-1.4.3-DbYWzKGDN8K1aNJlQiNb67" False) (C1 (MetaCons "PredictResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_prsPrediction") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Prediction))) (S1 (MetaSel (Just Symbol "_prsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))

Response Lenses

prsResponseStatus :: Lens' PredictResponse Int Source #

The response status code.