Copyright | (c) 2015-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 |
Submit model id and request a prediction.
See: Prediction API Reference for prediction.trainedmodels.predict
.
Synopsis
- type TrainedModelsPredictResource = "prediction" :> ("v1.6" :> ("projects" :> (Capture "project" Text :> ("trainedmodels" :> (Capture "id" Text :> ("predict" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Input :> Post '[JSON] Output))))))))
- trainedModelsPredict :: Text -> Input -> Text -> TrainedModelsPredict
- data TrainedModelsPredict
- tmpProject :: Lens' TrainedModelsPredict Text
- tmpPayload :: Lens' TrainedModelsPredict Input
- tmpId :: Lens' TrainedModelsPredict Text
REST Resource
type TrainedModelsPredictResource = "prediction" :> ("v1.6" :> ("projects" :> (Capture "project" Text :> ("trainedmodels" :> (Capture "id" Text :> ("predict" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Input :> Post '[JSON] Output)))))))) Source #
A resource alias for prediction.trainedmodels.predict
method which the
TrainedModelsPredict
request conforms to.
Creating a Request
Creates a value of TrainedModelsPredict
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data TrainedModelsPredict Source #
Submit model id and request a prediction.
See: trainedModelsPredict
smart constructor.
Instances
Request Lenses
tmpProject :: Lens' TrainedModelsPredict Text Source #
The project associated with the model.
tmpPayload :: Lens' TrainedModelsPredict Input Source #
Multipart request metadata.