Class DpoMethod.Builder
-
- All Implemented Interfaces:
public final class DpoMethod.Builder
A builder for DpoMethod.
-
-
Method Summary
Modifier and Type Method Description final DpoMethod.Builder
hyperparameters(DpoHyperparameters hyperparameters)
The hyperparameters used for the DPO fine-tuning job. final DpoMethod.Builder
hyperparameters(JsonField<DpoHyperparameters> hyperparameters)
Sets Builder.hyperparameters to an arbitrary JSON value. final DpoMethod.Builder
additionalProperties(Map<String, JsonValue> additionalProperties)
final DpoMethod.Builder
putAdditionalProperty(String key, JsonValue value)
final DpoMethod.Builder
putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
final DpoMethod.Builder
removeAdditionalProperty(String key)
final DpoMethod.Builder
removeAllAdditionalProperties(Set<String> keys)
final DpoMethod
build()
Returns an immutable instance of DpoMethod. -
-
Method Detail
-
hyperparameters
final DpoMethod.Builder hyperparameters(DpoHyperparameters hyperparameters)
The hyperparameters used for the DPO fine-tuning job.
-
hyperparameters
final DpoMethod.Builder hyperparameters(JsonField<DpoHyperparameters> hyperparameters)
Sets Builder.hyperparameters to an arbitrary JSON value.
You should usually call Builder.hyperparameters with a well-typed DpoHyperparameters value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final DpoMethod.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final DpoMethod.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final DpoMethod.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final DpoMethod.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final DpoMethod.Builder removeAllAdditionalProperties(Set<String> keys)
-
-
-
-