Copyright | (c) 2013-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
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.
- 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:
See: predict
smart constructor.
Request Lenses
Destructuring the Response
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.
Response Lenses
prsPrediction :: Lens' PredictResponse (Maybe Prediction) Source #
Undocumented member.
prsResponseStatus :: Lens' PredictResponse Int Source #
The response status code.