Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)



Trainedmodels: get

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 the trainingStatus property value will be ERROR .

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 .

Authentication required

You need to be signed in with Google+ to do that.

Signing you in...

Google Developers needs your permission to do that.