class

OpenAI::CreateFineTuningJobRequestHyperparameters

Inherits JSON::Serializable < Reference < Object

The hyperparameters used for the fine-tuning job. This value is now deprecated in favor of method, and should be passed in under the method parameter.

Constructors

new(batch_size : CreateFineTuningJobRequestHyperparametersBatchSize | Nil = nil, learning_rate_multiplier : CreateFineTuningJobRequestHyperparametersLearningRateMultiplier | Nil = nil, n_epochs : CreateFineTuningJobRequestHyperparametersNEpochs | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

batch_size

Number of examples in each batch. A larger batch size means that model parameters are updated less frequently, but with lower variance.

Source
batch_size=(batch_size : CreateFineTuningJobRequestHyperparametersBatchSize | Nil)

Number of examples in each batch. A larger batch size means that model parameters are updated less frequently, but with lower variance.

Source
learning_rate_multiplier

Scaling factor for the learning rate. A smaller learning rate may be useful to avoid overfitting.

Source
learning_rate_multiplier=(learning_rate_multiplier : CreateFineTuningJobRequestHyperparametersLearningRateMultiplier | Nil)

Scaling factor for the learning rate. A smaller learning rate may be useful to avoid overfitting.

Source
n_epochs

The number of epochs to train the model for. An epoch refers to one full cycle through the training dataset.

Source
n_epochs=(n_epochs : CreateFineTuningJobRequestHyperparametersNEpochs | Nil)

The number of epochs to train the model for. An epoch refers to one full cycle through the training dataset.

Source