Copyright | (c) 2013-2021 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 |
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
- data Predict = Predict' {}
- newPredict :: Text -> Text -> Predict
- predict_mLModelId :: Lens' Predict Text
- predict_record :: Lens' Predict (HashMap Text Text)
- predict_predictEndpoint :: Lens' Predict Text
- data PredictResponse = PredictResponse' {}
- newPredictResponse :: Int -> PredictResponse
- predictResponse_prediction :: Lens' PredictResponse (Maybe Prediction)
- predictResponse_httpStatus :: Lens' PredictResponse Int
Creating a Request
See: newPredict
smart constructor.
Instances
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
Destructuring the Response
data PredictResponse Source #
See: newPredictResponse
smart constructor.
PredictResponse' | |
|
Instances
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_prediction :: Lens' PredictResponse (Maybe Prediction) Source #
Undocumented member.
predictResponse_httpStatus :: Lens' PredictResponse Int Source #
The response's http status code.