amazonka-ml-1.4.5: 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 .

Synopsis

Creating a Request

predict #

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 #

See: predict smart constructor.

Instances

Eq Predict # 

Methods

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

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

Data Predict # 

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 # 
Show Predict # 
Generic Predict # 

Associated Types

type Rep Predict :: * -> * #

Methods

from :: Predict -> Rep Predict x #

to :: Rep Predict x -> Predict #

Hashable Predict # 

Methods

hashWithSalt :: Int -> Predict -> Int #

hash :: Predict -> Int #

ToJSON Predict # 
NFData Predict # 

Methods

rnf :: Predict -> () #

AWSRequest Predict # 

Associated Types

type Rs Predict :: * #

ToQuery Predict # 
ToPath Predict # 

Methods

toPath :: Predict -> ByteString #

ToHeaders Predict # 

Methods

toHeaders :: Predict -> [Header] #

type Rep Predict # 
type Rep Predict = D1 (MetaData "Predict" "Network.AWS.MachineLearning.Predict" "amazonka-ml-1.4.5-CevT0Y7DDZXCSb8Nqca7UU" 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 # 

Request Lenses

pMLModelId :: Lens' Predict Text #

A unique identifier of the MLModel .

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

Undocumented member.

pPredictEndpoint :: Lens' Predict Text #

Undocumented member.

Destructuring the Response

predictResponse #

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 #

See: predictResponse smart constructor.

Instances

Eq PredictResponse # 
Data PredictResponse # 

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 # 
Show PredictResponse # 
Generic PredictResponse # 
NFData PredictResponse # 

Methods

rnf :: PredictResponse -> () #

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

Response Lenses

prsResponseStatus :: Lens' PredictResponse Int #

  • - | The response status code.