Class JobCreateParams.Method.Supervised.Hyperparameters
-
- All Implemented Interfaces:
public final class JobCreateParams.Method.Supervised.Hyperparameters
The hyperparameters used for the fine-tuning job.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
JobCreateParams.Method.Supervised.Hyperparameters.Builder
A builder for Hyperparameters.
public final class
JobCreateParams.Method.Supervised.Hyperparameters.BatchSize
Number of examples in each batch. A larger batch size means that model parameters are updated less frequently, but with lower variance.
public final class
JobCreateParams.Method.Supervised.Hyperparameters.LearningRateMultiplier
Scaling factor for the learning rate. A smaller learning rate may be useful to avoid overfitting.
public final class
JobCreateParams.Method.Supervised.Hyperparameters.NEpochs
The number of epochs to train the model for. An epoch refers to one full cycle through the training dataset.
-
Method Summary
-
-
Method Detail
-
batchSize
final Optional<JobCreateParams.Method.Supervised.Hyperparameters.BatchSize> batchSize()
Number of examples in each batch. A larger batch size means that model parameters are updated less frequently, but with lower variance.
-
learningRateMultiplier
final Optional<JobCreateParams.Method.Supervised.Hyperparameters.LearningRateMultiplier> learningRateMultiplier()
Scaling factor for the learning rate. A smaller learning rate may be useful to avoid overfitting.
-
nEpochs
final Optional<JobCreateParams.Method.Supervised.Hyperparameters.NEpochs> nEpochs()
The number of epochs to train the model for. An epoch refers to one full cycle through the training dataset.
-
_batchSize
final JsonField<JobCreateParams.Method.Supervised.Hyperparameters.BatchSize> _batchSize()
Returns the raw JSON value of batchSize.
Unlike batchSize, this method doesn't throw if the JSON field has an unexpected type.
-
_learningRateMultiplier
final JsonField<JobCreateParams.Method.Supervised.Hyperparameters.LearningRateMultiplier> _learningRateMultiplier()
Returns the raw JSON value of learningRateMultiplier.
Unlike learningRateMultiplier, this method doesn't throw if the JSON field has an unexpected type.
-
_nEpochs
final JsonField<JobCreateParams.Method.Supervised.Hyperparameters.NEpochs> _nEpochs()
Returns the raw JSON value of nEpochs.
Unlike nEpochs, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
validate
final JobCreateParams.Method.Supervised.Hyperparameters validate()
-
toBuilder
final JobCreateParams.Method.Supervised.Hyperparameters.Builder toBuilder()
-
builder
final static JobCreateParams.Method.Supervised.Hyperparameters.Builder builder()
Returns a mutable builder for constructing an instance of Hyperparameters.
-
-
-
-