Method: projects.locations.studies.trials.complete

Marks a trial as complete.

HTTP request

POST https://us-central1-ml.googleapis.com/v1/{name=projects/*/locations/*/studies/*/trials/*}:complete

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
name

string

Required. The trial name.metat

Request body

The request body contains data with the following structure:

JSON representation
{
  "finalMeasurement": {
    object (Measurement)
  },
  "trialInfeasible": boolean,
  "infeasibleReason": string
}
Fields
finalMeasurement

object (Measurement)

Optional. If provided, it will be used as the completed trial's finalMeasurement; Otherwise, the service will auto-select a previously reported measurement as the final-measurement

trialInfeasible

boolean

Optional. True if the trial cannot be run with the given Parameter, and finalMeasurement will be ignored.

infeasibleReason

string

Optional. A human readable reason why the trial was infeasible. This should only be provided if trialInfeasible is true.

Response body

If successful, the response body contains an instance of Trial.

Authorization Scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform

For more information, see the Authentication Overview.