Class: Google::Apis::MlV1::GoogleCloudMlV1StudyConfig

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

Overview

Represents configuration of a study.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudMlV1StudyConfig

Returns a new instance of GoogleCloudMlV1StudyConfig.



2478
2479
2480
# File 'generated/google/apis/ml_v1/classes.rb', line 2478

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

Instance Attribute Details

#algorithmString

The search algorithm specified for the study. Corresponds to the JSON property algorithm

Returns:

  • (String)


2460
2461
2462
# File 'generated/google/apis/ml_v1/classes.rb', line 2460

def algorithm
  @algorithm
end

#automated_stopping_configGoogle::Apis::MlV1::GoogleCloudMlV1AutomatedStoppingConfig

Configuration for Automated Early Stopping of Trials. If no implementation_config is set, automated early stopping will not be run. Corresponds to the JSON property automatedStoppingConfig



2466
2467
2468
# File 'generated/google/apis/ml_v1/classes.rb', line 2466

def automated_stopping_config
  @automated_stopping_config
end

#metricsArray<Google::Apis::MlV1::GoogleCloudMlV1StudyConfigMetricSpec>

Metric specs for the study. Corresponds to the JSON property metrics



2471
2472
2473
# File 'generated/google/apis/ml_v1/classes.rb', line 2471

def metrics
  @metrics
end

#parametersArray<Google::Apis::MlV1::GoogleCloudMlV1StudyConfigParameterSpec>

Required. The set of parameters to tune. Corresponds to the JSON property parameters



2476
2477
2478
# File 'generated/google/apis/ml_v1/classes.rb', line 2476

def parameters
  @parameters
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2483
2484
2485
2486
2487
2488
# File 'generated/google/apis/ml_v1/classes.rb', line 2483

def update!(**args)
  @algorithm = args[:algorithm] if args.key?(:algorithm)
  @automated_stopping_config = args[:automated_stopping_config] if args.key?(:automated_stopping_config)
  @metrics = args[:metrics] if args.key?(:metrics)
  @parameters = args[:parameters] if args.key?(:parameters)
end