Package com.google.cloud.aiplatform.v1
Class StudySpec
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.aiplatform.v1.StudySpec
- All Implemented Interfaces:
StudySpecOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class StudySpec
extends com.google.protobuf.GeneratedMessage
implements StudySpecOrBuilder
Represents specification of a Study.Protobuf type
google.cloud.aiplatform.v1.StudySpec- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe available search algorithms for the Study.static enumstatic final classRepresents specification of a Study.static final classConfiguration for ConvexAutomatedStoppingSpec.static interfacestatic final classThe decay curve automated stopping rule builds a Gaussian Process Regressor to predict the final objective value of a Trial based on the already completed Trials and the intermediate measurements of the current Trial.static interfacestatic enumThis indicates which measurement to use if/when the service automatically selects the final measurement from previously reported intermediate measurements.static final classThe 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.static interfacestatic final classRepresents a metric to optimize.static interfacestatic enumDescribes the noise level of the repeated observations.static final classRepresents a single parameter to optimize.static interfacestatic final classThe configuration (stopping conditions) for automated stopping of a Study.static interfaceNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanThe search algorithm specified for the Study.intThe search algorithm specified for the Study.The automated early stopping spec using convex stopping rule.The automated early stopping spec using convex stopping rule.The automated early stopping spec using decay curve rule.The automated early stopping spec using decay curve rule.static StudySpecstatic final com.google.protobuf.Descriptors.DescriptorDescribe which measurement selection type will be usedintDescribe which measurement selection type will be usedThe automated early stopping spec using median rule.The automated early stopping spec using median rule.getMetrics(int index) Required.intRequired.Required.getMetricsOrBuilder(int index) Required.List<? extends StudySpec.MetricSpecOrBuilder>Required.The observation noise level of the study.intThe observation noise level of the study.getParameters(int index) Required.intRequired.Required.getParametersOrBuilder(int index) Required.List<? extends StudySpec.ParameterSpecOrBuilder>Required.com.google.protobuf.Parser<StudySpec>intConditions for automated stopping of a Study.Conditions for automated stopping of a Study.booleanThe automated early stopping spec using convex stopping rule.booleanThe automated early stopping spec using decay curve rule.inthashCode()booleanThe automated early stopping spec using median rule.booleanConditions for automated stopping of a Study.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic StudySpec.Builderstatic StudySpec.BuildernewBuilder(StudySpec prototype) protected StudySpec.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static StudySpecparseDelimitedFrom(InputStream input) static StudySpecparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static StudySpecparseFrom(byte[] data) static StudySpecparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static StudySpecparseFrom(com.google.protobuf.ByteString data) static StudySpecparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static StudySpecparseFrom(com.google.protobuf.CodedInputStream input) static StudySpecparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static StudySpecparseFrom(InputStream input) static StudySpecparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static StudySpecparseFrom(ByteBuffer data) static StudySpecparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<StudySpec>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
DECAY_CURVE_STOPPING_SPEC_FIELD_NUMBER
public static final int DECAY_CURVE_STOPPING_SPEC_FIELD_NUMBER- See Also:
-
MEDIAN_AUTOMATED_STOPPING_SPEC_FIELD_NUMBER
public static final int MEDIAN_AUTOMATED_STOPPING_SPEC_FIELD_NUMBER- See Also:
-
CONVEX_AUTOMATED_STOPPING_SPEC_FIELD_NUMBER
public static final int CONVEX_AUTOMATED_STOPPING_SPEC_FIELD_NUMBER- See Also:
-
METRICS_FIELD_NUMBER
public static final int METRICS_FIELD_NUMBER- See Also:
-
PARAMETERS_FIELD_NUMBER
public static final int PARAMETERS_FIELD_NUMBER- See Also:
-
ALGORITHM_FIELD_NUMBER
public static final int ALGORITHM_FIELD_NUMBER- See Also:
-
OBSERVATION_NOISE_FIELD_NUMBER
public static final int OBSERVATION_NOISE_FIELD_NUMBER- See Also:
-
MEASUREMENT_SELECTION_TYPE_FIELD_NUMBER
public static final int MEASUREMENT_SELECTION_TYPE_FIELD_NUMBER- See Also:
-
STUDY_STOPPING_CONFIG_FIELD_NUMBER
public static final int STUDY_STOPPING_CONFIG_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
getAutomatedStoppingSpecCase
- Specified by:
getAutomatedStoppingSpecCasein interfaceStudySpecOrBuilder
-
hasDecayCurveStoppingSpec
public boolean hasDecayCurveStoppingSpec()The automated early stopping spec using decay curve rule.
.google.cloud.aiplatform.v1.StudySpec.DecayCurveAutomatedStoppingSpec decay_curve_stopping_spec = 4;- Specified by:
hasDecayCurveStoppingSpecin interfaceStudySpecOrBuilder- Returns:
- Whether the decayCurveStoppingSpec field is set.
-
getDecayCurveStoppingSpec
The automated early stopping spec using decay curve rule.
.google.cloud.aiplatform.v1.StudySpec.DecayCurveAutomatedStoppingSpec decay_curve_stopping_spec = 4;- Specified by:
getDecayCurveStoppingSpecin interfaceStudySpecOrBuilder- Returns:
- The decayCurveStoppingSpec.
-
getDecayCurveStoppingSpecOrBuilder
The automated early stopping spec using decay curve rule.
.google.cloud.aiplatform.v1.StudySpec.DecayCurveAutomatedStoppingSpec decay_curve_stopping_spec = 4;- Specified by:
getDecayCurveStoppingSpecOrBuilderin interfaceStudySpecOrBuilder
-
hasMedianAutomatedStoppingSpec
public boolean hasMedianAutomatedStoppingSpec()The automated early stopping spec using median rule.
.google.cloud.aiplatform.v1.StudySpec.MedianAutomatedStoppingSpec median_automated_stopping_spec = 5;- Specified by:
hasMedianAutomatedStoppingSpecin interfaceStudySpecOrBuilder- Returns:
- Whether the medianAutomatedStoppingSpec field is set.
-
getMedianAutomatedStoppingSpec
The automated early stopping spec using median rule.
.google.cloud.aiplatform.v1.StudySpec.MedianAutomatedStoppingSpec median_automated_stopping_spec = 5;- Specified by:
getMedianAutomatedStoppingSpecin interfaceStudySpecOrBuilder- Returns:
- The medianAutomatedStoppingSpec.
-
getMedianAutomatedStoppingSpecOrBuilder
The automated early stopping spec using median rule.
.google.cloud.aiplatform.v1.StudySpec.MedianAutomatedStoppingSpec median_automated_stopping_spec = 5;- Specified by:
getMedianAutomatedStoppingSpecOrBuilderin interfaceStudySpecOrBuilder
-
hasConvexAutomatedStoppingSpec
public boolean hasConvexAutomatedStoppingSpec()The automated early stopping spec using convex stopping rule.
.google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec convex_automated_stopping_spec = 9;- Specified by:
hasConvexAutomatedStoppingSpecin interfaceStudySpecOrBuilder- Returns:
- Whether the convexAutomatedStoppingSpec field is set.
-
getConvexAutomatedStoppingSpec
The automated early stopping spec using convex stopping rule.
.google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec convex_automated_stopping_spec = 9;- Specified by:
getConvexAutomatedStoppingSpecin interfaceStudySpecOrBuilder- Returns:
- The convexAutomatedStoppingSpec.
-
getConvexAutomatedStoppingSpecOrBuilder
The automated early stopping spec using convex stopping rule.
.google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec convex_automated_stopping_spec = 9;- Specified by:
getConvexAutomatedStoppingSpecOrBuilderin interfaceStudySpecOrBuilder
-
getMetricsList
Required. Metric specs for the Study.
repeated .google.cloud.aiplatform.v1.StudySpec.MetricSpec metrics = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getMetricsListin interfaceStudySpecOrBuilder
-
getMetricsOrBuilderList
Required. Metric specs for the Study.
repeated .google.cloud.aiplatform.v1.StudySpec.MetricSpec metrics = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getMetricsOrBuilderListin interfaceStudySpecOrBuilder
-
getMetricsCount
public int getMetricsCount()Required. Metric specs for the Study.
repeated .google.cloud.aiplatform.v1.StudySpec.MetricSpec metrics = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getMetricsCountin interfaceStudySpecOrBuilder
-
getMetrics
Required. Metric specs for the Study.
repeated .google.cloud.aiplatform.v1.StudySpec.MetricSpec metrics = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getMetricsin interfaceStudySpecOrBuilder
-
getMetricsOrBuilder
Required. Metric specs for the Study.
repeated .google.cloud.aiplatform.v1.StudySpec.MetricSpec metrics = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getMetricsOrBuilderin interfaceStudySpecOrBuilder
-
getParametersList
Required. The set of parameters to tune.
repeated .google.cloud.aiplatform.v1.StudySpec.ParameterSpec parameters = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getParametersListin interfaceStudySpecOrBuilder
-
getParametersOrBuilderList
Required. The set of parameters to tune.
repeated .google.cloud.aiplatform.v1.StudySpec.ParameterSpec parameters = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getParametersOrBuilderListin interfaceStudySpecOrBuilder
-
getParametersCount
public int getParametersCount()Required. The set of parameters to tune.
repeated .google.cloud.aiplatform.v1.StudySpec.ParameterSpec parameters = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getParametersCountin interfaceStudySpecOrBuilder
-
getParameters
Required. The set of parameters to tune.
repeated .google.cloud.aiplatform.v1.StudySpec.ParameterSpec parameters = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getParametersin interfaceStudySpecOrBuilder
-
getParametersOrBuilder
Required. The set of parameters to tune.
repeated .google.cloud.aiplatform.v1.StudySpec.ParameterSpec parameters = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getParametersOrBuilderin interfaceStudySpecOrBuilder
-
getAlgorithmValue
public int getAlgorithmValue()The search algorithm specified for the Study.
.google.cloud.aiplatform.v1.StudySpec.Algorithm algorithm = 3;- Specified by:
getAlgorithmValuein interfaceStudySpecOrBuilder- Returns:
- The enum numeric value on the wire for algorithm.
-
getAlgorithm
The search algorithm specified for the Study.
.google.cloud.aiplatform.v1.StudySpec.Algorithm algorithm = 3;- Specified by:
getAlgorithmin interfaceStudySpecOrBuilder- Returns:
- The algorithm.
-
getObservationNoiseValue
public int getObservationNoiseValue()The observation noise level of the study. Currently only supported by the Vertex AI Vizier service. Not supported by HyperparameterTuningJob or TrainingPipeline.
.google.cloud.aiplatform.v1.StudySpec.ObservationNoise observation_noise = 6;- Specified by:
getObservationNoiseValuein interfaceStudySpecOrBuilder- Returns:
- The enum numeric value on the wire for observationNoise.
-
getObservationNoise
The observation noise level of the study. Currently only supported by the Vertex AI Vizier service. Not supported by HyperparameterTuningJob or TrainingPipeline.
.google.cloud.aiplatform.v1.StudySpec.ObservationNoise observation_noise = 6;- Specified by:
getObservationNoisein interfaceStudySpecOrBuilder- Returns:
- The observationNoise.
-
getMeasurementSelectionTypeValue
public int getMeasurementSelectionTypeValue()Describe which measurement selection type will be used
.google.cloud.aiplatform.v1.StudySpec.MeasurementSelectionType measurement_selection_type = 7;- Specified by:
getMeasurementSelectionTypeValuein interfaceStudySpecOrBuilder- Returns:
- The enum numeric value on the wire for measurementSelectionType.
-
getMeasurementSelectionType
Describe which measurement selection type will be used
.google.cloud.aiplatform.v1.StudySpec.MeasurementSelectionType measurement_selection_type = 7;- Specified by:
getMeasurementSelectionTypein interfaceStudySpecOrBuilder- Returns:
- The measurementSelectionType.
-
hasStudyStoppingConfig
public boolean hasStudyStoppingConfig()Conditions for automated stopping of a Study. Enable automated stopping by configuring at least one condition.
optional .google.cloud.aiplatform.v1.StudySpec.StudyStoppingConfig study_stopping_config = 11;- Specified by:
hasStudyStoppingConfigin interfaceStudySpecOrBuilder- Returns:
- Whether the studyStoppingConfig field is set.
-
getStudyStoppingConfig
Conditions for automated stopping of a Study. Enable automated stopping by configuring at least one condition.
optional .google.cloud.aiplatform.v1.StudySpec.StudyStoppingConfig study_stopping_config = 11;- Specified by:
getStudyStoppingConfigin interfaceStudySpecOrBuilder- Returns:
- The studyStoppingConfig.
-
getStudyStoppingConfigOrBuilder
Conditions for automated stopping of a Study. Enable automated stopping by configuring at least one condition.
optional .google.cloud.aiplatform.v1.StudySpec.StudyStoppingConfig study_stopping_config = 11;- Specified by:
getStudyStoppingConfigOrBuilderin interfaceStudySpecOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static StudySpec parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static StudySpec parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static StudySpec parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static StudySpec parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static StudySpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static StudySpec parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static StudySpec parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static StudySpec parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static StudySpec parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected StudySpec.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-