Package com.google.genai.types
Class PreferenceOptimizationHyperParameters
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.PreferenceOptimizationHyperParameters
Hyperparameters for Preference Optimization. This data type is not supported in Gemini API.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for PreferenceOptimizationHyperParameters. -
Field Summary
Fields inherited from class com.google.genai.JsonSerializable
MAX_READ_LENGTH_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract Optional<AdapterSize>Optional.beta()Optional.builder()Instantiates a builder for PreferenceOptimizationHyperParameters.Optional.Deserializes a JSON string to a PreferenceOptimizationHyperParameters object.Optional.Creates a builder with the same values as this instance.Methods inherited from class com.google.genai.JsonSerializable
setMaxReadLength, stringToJsonNode, toJson
-
Constructor Details
-
PreferenceOptimizationHyperParameters
public PreferenceOptimizationHyperParameters()
-
-
Method Details
-
adapterSize
Optional. Adapter size for preference optimization. -
beta
Optional. Weight for KL Divergence regularization. -
epochCount
Optional. Number of complete passes the model makes over the entire training dataset during training. -
learningRateMultiplier
Optional. Multiplier for adjusting the default learning rate. -
builder
Instantiates a builder for PreferenceOptimizationHyperParameters. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a PreferenceOptimizationHyperParameters object.
-