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.v1beta1.StudySpec.MetricSpec.SafetyMetricConfig
Static Fields
public static final int DESIRED_MIN_SAFE_TRIALS_FRACTION_FIELD_NUMBER
Field Value
public static final int SAFETY_THRESHOLD_FIELD_NUMBER
Field Value
Static Methods
public static StudySpec.MetricSpec.SafetyMetricConfig getDefaultInstance()
Returns
public static final Descriptors.Descriptor getDescriptor()
Returns
public static StudySpec.MetricSpec.SafetyMetricConfig.Builder newBuilder()
Returns
public static StudySpec.MetricSpec.SafetyMetricConfig.Builder newBuilder(StudySpec.MetricSpec.SafetyMetricConfig prototype)
Parameter
Returns
public static StudySpec.MetricSpec.SafetyMetricConfig parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static StudySpec.MetricSpec.SafetyMetricConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static StudySpec.MetricSpec.SafetyMetricConfig parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
public static StudySpec.MetricSpec.SafetyMetricConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static StudySpec.MetricSpec.SafetyMetricConfig parseFrom(ByteString data)
Parameter
Returns
Exceptions
public static StudySpec.MetricSpec.SafetyMetricConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static StudySpec.MetricSpec.SafetyMetricConfig parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static StudySpec.MetricSpec.SafetyMetricConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static StudySpec.MetricSpec.SafetyMetricConfig parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static StudySpec.MetricSpec.SafetyMetricConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static StudySpec.MetricSpec.SafetyMetricConfig parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
public static StudySpec.MetricSpec.SafetyMetricConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Parser<StudySpec.MetricSpec.SafetyMetricConfig> parser()
Returns
Methods
public boolean equals(Object obj)
Parameter
Returns
Overrides
public StudySpec.MetricSpec.SafetyMetricConfig getDefaultInstanceForType()
Returns
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()
Returns
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
Overrides
public final UnknownFieldSet getUnknownFields()
Returns
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
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public StudySpec.MetricSpec.SafetyMetricConfig.Builder newBuilderForType()
Returns
protected StudySpec.MetricSpec.SafetyMetricConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
public StudySpec.MetricSpec.SafetyMetricConfig.Builder toBuilder()
Returns
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions