Class: Google::Apis::MlV1beta1::GoogleCloudMlV1beta1Model
- Inherits:
-
Object
- Object
- Google::Apis::MlV1beta1::GoogleCloudMlV1beta1Model
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/ml_v1beta1/classes.rb,
generated/google/apis/ml_v1beta1/representations.rb,
generated/google/apis/ml_v1beta1/representations.rb
Overview
Represents a machine learning solution. A model can have multiple versions, each of which is a deployed, trained model ready to receive prediction requests. The model itself is just a container. Next ID: 8
Instance Attribute Summary collapse
-
#default_version ⇒ Google::Apis::MlV1beta1::GoogleCloudMlV1beta1Version
Represents a version of the model.
-
#description ⇒ String
Optional.
-
#name ⇒ String
Required.
-
#online_prediction_logging ⇒ Boolean
(also: #online_prediction_logging?)
Optional.
-
#regions ⇒ Array<String>
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudMlV1beta1Model
constructor
A new instance of GoogleCloudMlV1beta1Model.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ GoogleCloudMlV1beta1Model
Returns a new instance of GoogleCloudMlV1beta1Model
726 727 728 |
# File 'generated/google/apis/ml_v1beta1/classes.rb', line 726 def initialize(**args) update!(**args) end |
Instance Attribute Details
#default_version ⇒ Google::Apis::MlV1beta1::GoogleCloudMlV1beta1Version
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.
Next ID: 18
Corresponds to the JSON property defaultVersion
693 694 695 |
# File 'generated/google/apis/ml_v1beta1/classes.rb', line 693 def default_version @default_version end |
#description ⇒ String
Optional. The description specified for the model when it was created.
Corresponds to the JSON property description
698 699 700 |
# File 'generated/google/apis/ml_v1beta1/classes.rb', line 698 def description @description end |
#name ⇒ String
Required. The name specified for the model when it was created.
The model name must be unique within the project it is created in.
Corresponds to the JSON property name
704 705 706 |
# File 'generated/google/apis/ml_v1beta1/classes.rb', line 704 def name @name end |
#online_prediction_logging ⇒ Boolean Also known as: online_prediction_logging?
Optional. If true, enables StackDriver Logging for online prediction.
Default is false.
Corresponds to the JSON property onlinePredictionLogging
710 711 712 |
# File 'generated/google/apis/ml_v1beta1/classes.rb', line 710 def online_prediction_logging @online_prediction_logging end |
#regions ⇒ Array<String>
Optional. The list of regions where the model is going to be deployed. Currently only one region per model is supported. Defaults to 'us-central1' if nothing is set. Note:
- No matter where a model is deployed, it can always be accessed by users from anywhere, both for online and batch prediction.
- The region for a batch prediction job is set by the region field when
submitting the batch prediction job and does not take its value from
this field.
Corresponds to the JSON property
regions
724 725 726 |
# File 'generated/google/apis/ml_v1beta1/classes.rb', line 724 def regions @regions end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
731 732 733 734 735 736 737 |
# File 'generated/google/apis/ml_v1beta1/classes.rb', line 731 def update!(**args) @default_version = args[:default_version] if args.key?(:default_version) @description = args[:description] if args.key?(:description) @name = args[:name] if args.key?(:name) @online_prediction_logging = args[:online_prediction_logging] if args.key?(:online_prediction_logging) @regions = args[:regions] if args.key?(:regions) end |