Class: Google::Apis::MlV1::GoogleCloudMlV1AutomatedStoppingConfig

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

Configuration for Automated Early Stopping of Trials. If no implementation_config is set, automated early stopping will not be run.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ GoogleCloudMlV1AutomatedStoppingConfig

Returns a new instance of GoogleCloudMlV1AutomatedStoppingConfig.



610
611
612
# File 'generated/google/apis/ml_v1/classes.rb', line 610

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

Instance Attribute Details

#decay_curve_stopping_configGoogle::Apis::MlV1::GoogleCloudMlV1AutomatedStoppingConfigDecayCurveAutomatedStoppingConfig

Corresponds to the JSON property decayCurveStoppingConfig



599
600
601
# File 'generated/google/apis/ml_v1/classes.rb', line 599

def decay_curve_stopping_config
  @decay_curve_stopping_config
end

#median_automated_stopping_configGoogle::Apis::MlV1::GoogleCloudMlV1AutomatedStoppingConfigMedianAutomatedStoppingConfig

The median automated stopping rule stops a pending trial if the trial's best objective_value is strictly below the median 'performance' of all completed trials reported up to the trial's last measurement. Currently, 'performance' refers to the running average of the objective values reported by the trial in each measurement. Corresponds to the JSON property medianAutomatedStoppingConfig



608
609
610
# File 'generated/google/apis/ml_v1/classes.rb', line 608

def median_automated_stopping_config
  @median_automated_stopping_config
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



615
616
617
618
# File 'generated/google/apis/ml_v1/classes.rb', line 615

def update!(**args)
  @decay_curve_stopping_config = args[:decay_curve_stopping_config] if args.key?(:decay_curve_stopping_config)
  @median_automated_stopping_config = args[:median_automated_stopping_config] if args.key?(:median_automated_stopping_config)
end