google_api_machine_learning v0.3.0 GoogleApi.MachineLearning.V1.Model.GoogleCloudMlV1Version View Source

Represents a version of the model. Each version is a trained model deployed in the cloud, ready to handle prediction requests. A model can have multiple versions. You can get information about all of the versions of a given model by calling projects.models.versions.list.

Attributes

  • autoScaling (GoogleCloudMlV1AutoScaling): Automatically scale the number of nodes used to serve the model in response to increases and decreases in traffic. Care should be taken to ramp up traffic according to the model's ability to scale or you will start seeing increases in latency and 429 response codes. Defaults to: null.
  • createTime (DateTime.t): Output only. The time the version was created. Defaults to: null.
  • deploymentUri (String.t): Required. The Google Cloud Storage location of the trained model used to create the version. See the guide to model deployment for more information. When passing Version to projects.models.versions.create the model service uses the specified location as the source of the model. Once deployed, the model version is hosted by the prediction service, so this location is useful only as a historical record. The total number of model files can't exceed 1000. Defaults to: null.
  • description (String.t): Optional. The description specified for the version when it was created. Defaults to: null.
  • errorMessage (String.t): Output only. The details of a failure or a cancellation. Defaults to: null.
  • etag (binary()): `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a model from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform model updates in order to avoid race conditions: An `etag` is returned in the response to `GetVersion`, and systems are expected to put that etag in the request to `UpdateVersion` to ensure that their change will be applied to the model as intended. Defaults to: null.
  • framework (String.t): Optional. The machine learning framework Cloud ML Engine uses to train this version of the model. Valid values are `TENSORFLOW`, `SCIKIT_LEARN`, `XGBOOST`. If you do not specify a framework, Cloud ML Engine will analyze files in the deployment_uri to determine a framework. If you choose `SCIKIT_LEARN` or `XGBOOST`, you must also set the runtime version of the model to 1.4 or greater. Defaults to: null.

    • Enum - one of [FRAMEWORK_UNSPECIFIED, TENSORFLOW, SCIKIT_LEARN, XGBOOST]
  • isDefault (boolean()): Output only. If true, this version will be used to handle prediction requests that do not specify a version. You can change the default version by calling projects.methods.versions.setDefault. Defaults to: null.
  • labels (%{optional(String.t) => String.t}): Optional. One or more labels that you can add, to organize your model versions. Each label is a key-value pair, where both the key and the value are arbitrary strings that you supply. For more information, see the documentation on <a href="/ml-engine/docs/tensorflow/resource-labels">using labels</a>. Defaults to: null.
  • lastUseTime (DateTime.t): Output only. The time the version was last used for prediction. Defaults to: null.
  • machineType (String.t): Optional. The type of machine on which to serve the model. Currently only applies to online prediction service. The following are currently supported and will be deprecated in Beta release. mls1-highmem-1 1 core 2 Gb RAM mls1-highcpu-4 4 core 2 Gb RAM The following are available in Beta: mls1-c1-m2 1 core 2 Gb RAM Default mls1-c4-m2 4 core 2 Gb RAM Defaults to: null.
  • manualScaling (GoogleCloudMlV1ManualScaling): Manually select the number of nodes to use for serving the model. You should generally use `auto_scaling` with an appropriate `min_nodes` instead, but this option is available if you want more predictable billing. Beware that latency and error rates will increase if the traffic exceeds that capability of the system to serve it based on the selected number of nodes. Defaults to: null.
  • name (String.t): Required.The name specified for the version when it was created. The version name must be unique within the model it is created in. Defaults to: null.
  • pythonVersion (String.t): Optional. The version of Python used in prediction. If not set, the default version is '2.7'. Python '3.5' is available when `runtime_version` is set to '1.4' and above. Python '2.7' works with all supported runtime versions. Defaults to: null.
  • runtimeVersion (String.t): Optional. The Cloud ML Engine runtime version to use for this deployment. If not set, Cloud ML Engine uses the default stable version, 1.0. For more information, see the runtime version list and how to manage runtime versions. Defaults to: null.
  • state (String.t): Output only. The state of a version. Defaults to: null.

    • Enum - one of [UNKNOWN, READY, CREATING, FAILED, DELETING, UPDATING]

Link to this section Summary

Functions

Unwrap a decoded JSON object into its complex fields

Link to this section Types

Link to this type

t() View Source
t() :: %GoogleApi.MachineLearning.V1.Model.GoogleCloudMlV1Version{
  autoScaling:
    GoogleApi.MachineLearning.V1.Model.GoogleCloudMlV1AutoScaling.t(),
  createTime: DateTime.t(),
  deploymentUri: any(),
  description: any(),
  errorMessage: any(),
  etag: any(),
  framework: any(),
  isDefault: any(),
  labels: map(),
  lastUseTime: DateTime.t(),
  machineType: any(),
  manualScaling:
    GoogleApi.MachineLearning.V1.Model.GoogleCloudMlV1ManualScaling.t(),
  name: any(),
  pythonVersion: any(),
  runtimeVersion: any(),
  state: any()
}

Link to this section Functions

Link to this function

decode(value, options) View Source
decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.