Class FineTuningJob.Method
-
- All Implemented Interfaces:
public final class FineTuningJob.MethodThe method used for fine-tuning.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classFineTuningJob.Method.BuilderA builder for Method.
public final classFineTuningJob.Method.TypeThe type of method. Is either
supervised,dpo, orreinforcement.
-
Method Summary
Modifier and Type Method Description final FineTuningJob.Method.Typetype()The type of method. final Optional<DpoMethod>dpo()Configuration for the DPO fine-tuning method. final Optional<ReinforcementMethod>reinforcement()Configuration for the reinforcement fine-tuning method. final Optional<SupervisedMethod>supervised()Configuration for the supervised fine-tuning method. final JsonField<FineTuningJob.Method.Type>_type()Returns the raw JSON value of type. final JsonField<DpoMethod>_dpo()Returns the raw JSON value of dpo. final JsonField<ReinforcementMethod>_reinforcement()Returns the raw JSON value of reinforcement. final JsonField<SupervisedMethod>_supervised()Returns the raw JSON value of supervised. final Map<String, JsonValue>_additionalProperties()final FineTuningJob.Method.BuildertoBuilder()final FineTuningJob.Methodvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static FineTuningJob.Method.Builderbuilder()Returns a mutable builder for constructing an instance of Method. -
-
Method Detail
-
type
final FineTuningJob.Method.Type type()
The type of method. Is either
supervised,dpo, orreinforcement.
-
reinforcement
final Optional<ReinforcementMethod> reinforcement()
Configuration for the reinforcement fine-tuning method.
-
supervised
final Optional<SupervisedMethod> supervised()
Configuration for the supervised fine-tuning method.
-
_type
final JsonField<FineTuningJob.Method.Type> _type()
Returns the raw JSON value of type.
Unlike type, this method doesn't throw if the JSON field has an unexpected type.
-
_dpo
final JsonField<DpoMethod> _dpo()
Returns the raw JSON value of dpo.
Unlike dpo, this method doesn't throw if the JSON field has an unexpected type.
-
_reinforcement
final JsonField<ReinforcementMethod> _reinforcement()
Returns the raw JSON value of reinforcement.
Unlike reinforcement, this method doesn't throw if the JSON field has an unexpected type.
-
_supervised
final JsonField<SupervisedMethod> _supervised()
Returns the raw JSON value of supervised.
Unlike supervised, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final FineTuningJob.Method.Builder toBuilder()
-
validate
final FineTuningJob.Method validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static FineTuningJob.Method.Builder builder()
Returns a mutable builder for constructing an instance of Method.
The following fields are required:
.type()
-
-
-
-