Class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1CustomTuningModel

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/discoveryengine_v1/classes.rb,
lib/google/apis/discoveryengine_v1/representations.rb,
lib/google/apis/discoveryengine_v1/representations.rb

Overview

Metadata that describes a custom tuned model.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1CustomTuningModel

Returns a new instance of GoogleCloudDiscoveryengineV1CustomTuningModel.



3366
3367
3368
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 3366

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#create_timeString

Deprecated: Timestamp the Model was created at. Corresponds to the JSON property createTime

Returns:

  • (String)


3325
3326
3327
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 3325

def create_time
  @create_time
end

#display_nameString

The display name of the model. Corresponds to the JSON property displayName

Returns:

  • (String)


3330
3331
3332
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 3330

def display_name
  @display_name
end

#error_messageString

Currently this is only populated if the model state is INPUT_VALIDATION_FAILED. Corresponds to the JSON property errorMessage

Returns:

  • (String)


3336
3337
3338
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 3336

def error_message
  @error_message
end

#metricsHash<String,Float>

The metrics of the trained model. Corresponds to the JSON property metrics

Returns:

  • (Hash<String,Float>)


3341
3342
3343
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 3341

def metrics
  @metrics
end

#model_stateString

The state that the model is in (e.g.TRAINING or TRAINING_FAILED). Corresponds to the JSON property modelState

Returns:

  • (String)


3346
3347
3348
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 3346

def model_state
  @model_state
end

#model_versionFixnum

The version of the model. Corresponds to the JSON property modelVersion

Returns:

  • (Fixnum)


3351
3352
3353
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 3351

def model_version
  @model_version
end

#nameString

Required. The fully qualified resource name of the model. Format: projects/ project/locations/location/collections/collection/dataStores/data_store/ customTuningModels/custom_tuning_model`. Model must be an alpha-numerical string with limit of 40 characters. Corresponds to the JSON propertyname`

Returns:

  • (String)


3359
3360
3361
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 3359

def name
  @name
end

#training_start_timeString

Timestamp the model training was initiated. Corresponds to the JSON property trainingStartTime

Returns:

  • (String)


3364
3365
3366
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 3364

def training_start_time
  @training_start_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 3371

def update!(**args)
  @create_time = args[:create_time] if args.key?(:create_time)
  @display_name = args[:display_name] if args.key?(:display_name)
  @error_message = args[:error_message] if args.key?(:error_message)
  @metrics = args[:metrics] if args.key?(:metrics)
  @model_state = args[:model_state] if args.key?(:model_state)
  @model_version = args[:model_version] if args.key?(:model_version)
  @name = args[:name] if args.key?(:name)
  @training_start_time = args[:training_start_time] if args.key?(:training_start_time)
end