| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.MachineLearning.Predict
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
- 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.
Constructors
| Predict' | |
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:
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.
Constructors
| PredictResponse' | |
Fields
| |
Instances
Arguments
| :: Int | |
| -> PredictResponse |
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.