Class StudySpec.MedianAutomatedStoppingSpec.Builder (3.45.0)

public static final class StudySpec.MedianAutomatedStoppingSpec.Builder extends GeneratedMessageV3.Builder<StudySpec.MedianAutomatedStoppingSpec.Builder> implements StudySpec.MedianAutomatedStoppingSpecOrBuilder

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.

Protobuf type google.cloud.aiplatform.v1.StudySpec.MedianAutomatedStoppingSpec

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public StudySpec.MedianAutomatedStoppingSpec.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
StudySpec.MedianAutomatedStoppingSpec.Builder
Overrides

build()

public StudySpec.MedianAutomatedStoppingSpec build()
Returns
Type Description
StudySpec.MedianAutomatedStoppingSpec

buildPartial()

public StudySpec.MedianAutomatedStoppingSpec buildPartial()
Returns
Type Description
StudySpec.MedianAutomatedStoppingSpec

clear()

public StudySpec.MedianAutomatedStoppingSpec.Builder clear()
Returns
Type Description
StudySpec.MedianAutomatedStoppingSpec.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public StudySpec.MedianAutomatedStoppingSpec.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
StudySpec.MedianAutomatedStoppingSpec.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public StudySpec.MedianAutomatedStoppingSpec.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
StudySpec.MedianAutomatedStoppingSpec.Builder
Overrides

clearUseElapsedDuration()

public StudySpec.MedianAutomatedStoppingSpec.Builder clearUseElapsedDuration()

True if median automated stopping rule applies on Measurement.elapsed_duration. It means that elapsed_duration field of latest measurement of current Trial is used to compute median objective value for each completed Trials.

bool use_elapsed_duration = 1;

Returns
Type Description
StudySpec.MedianAutomatedStoppingSpec.Builder

This builder for chaining.

clone()

public StudySpec.MedianAutomatedStoppingSpec.Builder clone()
Returns
Type Description
StudySpec.MedianAutomatedStoppingSpec.Builder
Overrides

getDefaultInstanceForType()

public StudySpec.MedianAutomatedStoppingSpec getDefaultInstanceForType()
Returns
Type Description
StudySpec.MedianAutomatedStoppingSpec

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getUseElapsedDuration()

public boolean getUseElapsedDuration()

True if median automated stopping rule applies on Measurement.elapsed_duration. It means that elapsed_duration field of latest measurement of current Trial is used to compute median objective value for each completed Trials.

bool use_elapsed_duration = 1;

Returns
Type Description
boolean

The useElapsedDuration.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(StudySpec.MedianAutomatedStoppingSpec other)

public StudySpec.MedianAutomatedStoppingSpec.Builder mergeFrom(StudySpec.MedianAutomatedStoppingSpec other)
Parameter
Name Description
other StudySpec.MedianAutomatedStoppingSpec
Returns
Type Description
StudySpec.MedianAutomatedStoppingSpec.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public StudySpec.MedianAutomatedStoppingSpec.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
StudySpec.MedianAutomatedStoppingSpec.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public StudySpec.MedianAutomatedStoppingSpec.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
StudySpec.MedianAutomatedStoppingSpec.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final StudySpec.MedianAutomatedStoppingSpec.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
StudySpec.MedianAutomatedStoppingSpec.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public StudySpec.MedianAutomatedStoppingSpec.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
StudySpec.MedianAutomatedStoppingSpec.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public StudySpec.MedianAutomatedStoppingSpec.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
StudySpec.MedianAutomatedStoppingSpec.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final StudySpec.MedianAutomatedStoppingSpec.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
StudySpec.MedianAutomatedStoppingSpec.Builder
Overrides

setUseElapsedDuration(boolean value)

public StudySpec.MedianAutomatedStoppingSpec.Builder setUseElapsedDuration(boolean value)

True if median automated stopping rule applies on Measurement.elapsed_duration. It means that elapsed_duration field of latest measurement of current Trial is used to compute median objective value for each completed Trials.

bool use_elapsed_duration = 1;

Parameter
Name Description
value boolean

The useElapsedDuration to set.

Returns
Type Description
StudySpec.MedianAutomatedStoppingSpec.Builder

This builder for chaining.