| Copyright | (c) 2013-2018 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | None |
| Language | Haskell2010 |
Network.AWS.MachineLearning.Predict
Description
Generates a prediction for the observation using the specified ML Model .
- predict :: Text -> Text -> Predict
- data Predict
- pMLModelId :: Lens' Predict Text
- pRecord :: Lens' Predict (HashMap Text Text)
- pPredictEndpoint :: Lens' Predict Text
- predictResponse :: Int -> PredictResponse
- data PredictResponse
- prsPrediction :: Lens' PredictResponse (Maybe Prediction)
- prsResponseStatus :: Lens' PredictResponse Int
Creating a Request
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:
pMLModelId- A unique identifier of theMLModel.pRecord- Undocumented member.pPredictEndpoint- Undocumented member.
See: predict smart constructor.
Instances
Request Lenses
Destructuring the Response
Arguments
| :: Int | |
| -> 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:
prsPrediction- Undocumented member.prsResponseStatus- -- | The response status code.
data PredictResponse Source #
See: predictResponse smart constructor.
Response Lenses
prsPrediction :: Lens' PredictResponse (Maybe Prediction) Source #
Undocumented member.
prsResponseStatus :: Lens' PredictResponse Int Source #
- - | The response status code.