Requires authorization
Check training status of your model. Try it now .
Returns information about a trained model, including training status, confusion matrix, and estimated error values.
Note that this will not return successfully for a new model until training has completed successfully.
-
If this is an attempt to train a new model,
trainedmodels.get
will return HTTP 200 response even if training is still running. If training completes successfully, the method will return the trainedmodels resource; if training fails, this method will return an HTTP 404 "No model found. Model must first be trained" -
If this is an attempt to retrain an existing model,
trainedmodels.get
will always return a trainedmodels resource. If the retraining succeeds, the resource will be for the new model. If the retraining fails, the resource will be for the previous model, but thetrainingStatus
property value will beERROR
.
Request
HTTP request
GET https://www.googleapis.com/prediction/v1.5/trainedmodels/id
Parameters
Parameter name | Value | Description |
---|---|---|
Required parameters | ||
id
|
string
|
The unique name for the predictive model. |
Authorization
This request requires authorization with at least one of the following scopes ( read more about authentication and authorization ).
Scope |
---|
https://www.googleapis.com/auth/prediction
|
Request body
Do not supply a request body with this method.
Response
If successful, this method returns a Trainedmodels resource in the response body.
Try it!
Use the APIs Explorer below to call this method on live data and see the response. Alternatively, try the standalone Explorer .