public static final class StudySpec.MetricSpec.SafetyMetricConfig extends GeneratedMessageV3 implements StudySpec.MetricSpec.SafetyMetricConfigOrBuilder
Used in safe optimization to specify threshold levels and risk tolerance.
Protobuf type google.cloud.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
public static final int DESIRED_MIN_SAFE_TRIALS_FRACTION_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int SAFETY_THRESHOLD_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
Static Methods
public static StudySpec.MetricSpec.SafetyMetricConfig getDefaultInstance()
public static final Descriptors.Descriptor getDescriptor()
public static StudySpec.MetricSpec.SafetyMetricConfig.Builder newBuilder()
public static StudySpec.MetricSpec.SafetyMetricConfig.Builder newBuilder(StudySpec.MetricSpec.SafetyMetricConfig prototype)
public static StudySpec.MetricSpec.SafetyMetricConfig parseDelimitedFrom(InputStream input)
public static StudySpec.MetricSpec.SafetyMetricConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static StudySpec.MetricSpec.SafetyMetricConfig parseFrom(byte[] data)
Parameter |
---|
Name | Description |
data | byte[]
|
public static StudySpec.MetricSpec.SafetyMetricConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static StudySpec.MetricSpec.SafetyMetricConfig parseFrom(ByteString data)
public static StudySpec.MetricSpec.SafetyMetricConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static StudySpec.MetricSpec.SafetyMetricConfig parseFrom(CodedInputStream input)
public static StudySpec.MetricSpec.SafetyMetricConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static StudySpec.MetricSpec.SafetyMetricConfig parseFrom(InputStream input)
public static StudySpec.MetricSpec.SafetyMetricConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static StudySpec.MetricSpec.SafetyMetricConfig parseFrom(ByteBuffer data)
public static StudySpec.MetricSpec.SafetyMetricConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Parser<StudySpec.MetricSpec.SafetyMetricConfig> parser()
Methods
public boolean equals(Object obj)
Parameter |
---|
Name | Description |
obj | Object
|
Overrides
public StudySpec.MetricSpec.SafetyMetricConfig getDefaultInstanceForType()
public double getDesiredMinSafeTrialsFraction()
Desired minimum fraction of safe trials (over total number of trials)
that should be targeted by the algorithm at any time during the
study (best effort). This should be between 0.0 and 1.0 and a value of
0.0 means that there is no minimum and an algorithm proceeds without
targeting any specific fraction. A value of 1.0 means that the
algorithm attempts to only Suggest safe Trials.
optional double desired_min_safe_trials_fraction = 2;
Returns |
---|
Type | Description |
double | The desiredMinSafeTrialsFraction.
|
public Parser<StudySpec.MetricSpec.SafetyMetricConfig> getParserForType()
Overrides
public double getSafetyThreshold()
Safety threshold (boundary value between safe and unsafe). NOTE that if
you leave SafetyMetricConfig unset, a default value of 0 will be used.
double safety_threshold = 1;
Returns |
---|
Type | Description |
double | The safetyThreshold.
|
public int getSerializedSize()
Returns |
---|
Type | Description |
int | |
Overrides
public boolean hasDesiredMinSafeTrialsFraction()
Desired minimum fraction of safe trials (over total number of trials)
that should be targeted by the algorithm at any time during the
study (best effort). This should be between 0.0 and 1.0 and a value of
0.0 means that there is no minimum and an algorithm proceeds without
targeting any specific fraction. A value of 1.0 means that the
algorithm attempts to only Suggest safe Trials.
optional double desired_min_safe_trials_fraction = 2;
Returns |
---|
Type | Description |
boolean | Whether the desiredMinSafeTrialsFraction field is set.
|
Returns |
---|
Type | Description |
int | |
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public StudySpec.MetricSpec.SafetyMetricConfig.Builder newBuilderForType()
protected StudySpec.MetricSpec.SafetyMetricConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Overrides
public StudySpec.MetricSpec.SafetyMetricConfig.Builder toBuilder()
public void writeTo(CodedOutputStream output)
Overrides