Class: OpenAI::Models::FineTuning::JobCreateParams::Hyperparameters Deprecated
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::FineTuning::JobCreateParams::Hyperparameters
- Defined in:
- lib/openai/models/fine_tuning/job_create_params.rb
Overview
Defined Under Namespace
Modules: BatchSize, LearningRateMultiplier, NEpochs
Instance Attribute Summary collapse
-
#batch_size ⇒ Symbol, ...
Number of examples in each batch.
-
#learning_rate_multiplier ⇒ Symbol, ...
Scaling factor for the learning rate.
-
#n_epochs ⇒ Symbol, ...
The number of epochs to train the model for.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(batch_size: nil, learning_rate_multiplier: nil, n_epochs: nil) ⇒ Object
constructor
Some parameter documentations has been truncated, see Hyperparameters for more details.
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, #inspect, inspect, type_info
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(batch_size: nil, learning_rate_multiplier: nil, n_epochs: nil) ⇒ Object
Some parameter documentations has been truncated, see OpenAI::Models::FineTuning::JobCreateParams::Hyperparameters for more details.
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.
|
# File 'lib/openai/models/fine_tuning/job_create_params.rb', line 189
|
Instance Attribute Details
#batch_size ⇒ Symbol, ...
Number of examples in each batch. A larger batch size means that model parameters are updated less frequently, but with lower variance.
172 |
# File 'lib/openai/models/fine_tuning/job_create_params.rb', line 172 optional :batch_size, union: -> { OpenAI::FineTuning::JobCreateParams::Hyperparameters::BatchSize } |
#learning_rate_multiplier ⇒ Symbol, ...
Scaling factor for the learning rate. A smaller learning rate may be useful to avoid overfitting.
179 180 |
# File 'lib/openai/models/fine_tuning/job_create_params.rb', line 179 optional :learning_rate_multiplier, union: -> { OpenAI::FineTuning::JobCreateParams::Hyperparameters::LearningRateMultiplier } |
#n_epochs ⇒ Symbol, ...
The number of epochs to train the model for. An epoch refers to one full cycle through the training dataset.
187 |
# File 'lib/openai/models/fine_tuning/job_create_params.rb', line 187 optional :n_epochs, union: -> { OpenAI::FineTuning::JobCreateParams::Hyperparameters::NEpochs } |
Class Method Details
.variants ⇒ Array(Symbol, :auto, Float)
|
# File 'lib/openai/models/fine_tuning/job_create_params.rb', line 213
|