Class: OpenAI::Models::FineTuning::FineTuningJob::Method

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/openai/models/fine_tuning/fine_tuning_job.rb,
sig/openai/models/fine_tuning/fine_tuning_job.rbs

Overview

See Also:

  • OpenAI::Models::FineTuning::FineTuningJob#method_

Defined Under Namespace

Modules: Type

Instance Attribute Summary collapse

Attributes inherited from Internal::Type::BaseModel

#last_response

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], #_request_id, #_set_last_response, coerce, #deconstruct_keys, #deep_to_h, dump, #encode_with, 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, coerce_with_error, dump, #dump, #inspect, inspect, meta_info, new_coerce_state, 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(type:, dpo: nil, reinforcement: nil, supervised: nil) ⇒ Object



# File 'lib/openai/models/fine_tuning/fine_tuning_job.rb', line 395

Instance Attribute Details

#dpo ⇒ OpenAI::FineTuning::DpoMethod?

Configuration for the DPO fine-tuning method.



381
# File 'lib/openai/models/fine_tuning/fine_tuning_job.rb', line 381

optional :dpo, -> { OpenAI::FineTuning::DpoMethod }

#reinforcement ⇒ OpenAI::FineTuning::ReinforcementMethod?

Configuration for the reinforcement fine-tuning method.



387
# File 'lib/openai/models/fine_tuning/fine_tuning_job.rb', line 387

optional :reinforcement, -> { OpenAI::FineTuning::ReinforcementMethod }

#supervised ⇒ OpenAI::FineTuning::SupervisedMethod?

Configuration for the supervised fine-tuning method.



393
# File 'lib/openai/models/fine_tuning/fine_tuning_job.rb', line 393

optional :supervised, -> { OpenAI::FineTuning::SupervisedMethod }

#type ⇒ OpenAI::Models::FineTuning::FineTuningJob::Method::type_

The type of method. Is either supervised, dpo, or reinforcement.



375
# File 'lib/openai/models/fine_tuning/fine_tuning_job.rb', line 375

required :type, enum: -> { OpenAI::FineTuning::FineTuningJob::Method::Type }

Instance Method Details

#to_hash ⇒ {



387
# File 'sig/openai/models/fine_tuning/fine_tuning_job.rbs', line 387

def to_hash: -> {